test: fix ngcc tests to work with flattened dts files (#28884)

PR Close #28884
This commit is contained in:
Alan 2019-03-06 09:05:06 +01:00 committed by Kara Erickson
parent 7b0e9eddd1
commit b3ffdf92c5
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ ivy-ngcc
if [[ $? != 0 ]]; then exit 1; fi
# Did it transform @angular/core typing files correctly?
grep "import [*] as ɵngcc0 from './r3_symbols';" node_modules/@angular/core/src/application_module.d.ts
grep "import [*] as ɵngcc0 from './src/r3_symbols';" node_modules/@angular/core/core.d.ts
if [[ $? != 0 ]]; then exit 1; fi
grep "static ngInjectorDef: ɵngcc0.InjectorDef<ApplicationModule>;" node_modules/@angular/core/src/application_module.d.ts
grep "static ngInjectorDef: ɵngcc0.InjectorDef<ApplicationModule>;" node_modules/@angular/core/core.d.ts
if [[ $? != 0 ]]; then exit 1; fi
# Did it generate a base factory call for synthesized constructors correctly?