Skip to content

Commit

Permalink
test(ivy): root-case //packages/compiler-cli/integrationtest/bazel/in…
Browse files Browse the repository at this point in the history
…jector_def/ivy_build/app/test:test
  • Loading branch information
IgorMinar committed Nov 27, 2018
1 parent 42985aa commit d5819c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ts_library(
],
),
tags = [
"fixme-ivy-aot",
"ivy-only",
],
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,24 @@ describe('Ivy NgModule', () => {

it('works', () => { createInjector(JitAppModule); });

it('throws an error on circular module dependencies', () => {
@NgModule({
imports: [forwardRef(() => BModule)],
})
class AModule {
}

@NgModule({
imports: [AModule],
})
class BModule {
}

expect(() => createInjector(AModule))
.toThrowError(
'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.');
});
fixmeIvy('FW-645: jit doesn\'t support forwardRefs') &&
it('throws an error on circular module dependencies', () => {
@NgModule({
imports: [forwardRef(() => BModule)],
})
class AModule {
}

@NgModule({
imports: [AModule],
})
class BModule {
}

expect(() => createInjector(AModule))
.toThrowError(
'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.');
});

it('merges imports and exports', () => {
const TOKEN = new InjectionToken<string>('TOKEN');
Expand Down

0 comments on commit d5819c9

Please sign in to comment.