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 = [
"fixme-ivy-aot",
"ivy-only",
],
deps = [

View File

@ -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 {
}
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 {
}
@NgModule({
imports: [AModule],
})
class BModule {
}
expect(() => createInjector(AModule))
.toThrowError(
'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.');
});
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');