test(ivy): root-case //packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test:test (#27278)

PR Close #27278
This commit is contained in:
Igor Minar 2018-11-26 17:57:01 -08:00 committed by Jason Aden
parent 5d82c73da6
commit 78e3a4c97c
2 changed files with 16 additions and 16 deletions

View File

@ -11,7 +11,6 @@ ts_library(
], ],
), ),
tags = [ tags = [
"fixme-ivy-aot",
"ivy-only", "ivy-only",
], ],
deps = [ deps = [

View File

@ -41,23 +41,24 @@ describe('Ivy NgModule', () => {
it('works', () => { createInjector(JitAppModule); }); it('works', () => { createInjector(JitAppModule); });
it('throws an error on circular module dependencies', () => { fixmeIvy('FW-645: jit doesn\'t support forwardRefs') &&
@NgModule({ it('throws an error on circular module dependencies', () => {
imports: [forwardRef(() => BModule)], @NgModule({
}) imports: [forwardRef(() => BModule)],
class AModule { })
} class AModule {
}
@NgModule({ @NgModule({
imports: [AModule], imports: [AModule],
}) })
class BModule { class BModule {
} }
expect(() => createInjector(AModule)) expect(() => createInjector(AModule))
.toThrowError( .toThrowError(
'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.'); 'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.');
}); });
it('merges imports and exports', () => { it('merges imports and exports', () => {
const TOKEN = new InjectionToken<string>('TOKEN'); const TOKEN = new InjectionToken<string>('TOKEN');