@@ -375,7 +375,7 @@ class SomeComponent {
375375 } , 1 ) ;
376376
377377 const compilerFactory : CompilerFactory =
378- defaultPlatform . injector . get ( CompilerFactory , null ) ;
378+ defaultPlatform . injector . get ( CompilerFactory , null ) ! ;
379379 const moduleFactory = compilerFactory . createCompiler ( ) . compileModuleSync (
380380 createModule ( [ { provide : APP_INITIALIZER , useValue : ( ) => promise , multi : true } ] ) ) ;
381381 defaultPlatform . bootstrapModuleFactory ( moduleFactory ) . then ( _ => {
@@ -385,7 +385,7 @@ class SomeComponent {
385385
386386 it ( 'should rethrow sync errors even if the exceptionHandler is not rethrowing' , async ( ( ) => {
387387 const compilerFactory : CompilerFactory =
388- defaultPlatform . injector . get ( CompilerFactory , null ) ;
388+ defaultPlatform . injector . get ( CompilerFactory , null ) ! ;
389389 const moduleFactory = compilerFactory . createCompiler ( ) . compileModuleSync ( createModule (
390390 [ { provide : APP_INITIALIZER , useValue : ( ) => { throw 'Test' ; } , multi : true } ] ) ) ;
391391 expect ( ( ) => defaultPlatform . bootstrapModuleFactory ( moduleFactory ) ) . toThrow ( 'Test' ) ;
@@ -397,7 +397,7 @@ class SomeComponent {
397397 it ( 'should rethrow promise errors even if the exceptionHandler is not rethrowing' ,
398398 async ( ( ) => {
399399 const compilerFactory : CompilerFactory =
400- defaultPlatform . injector . get ( CompilerFactory , null ) ;
400+ defaultPlatform . injector . get ( CompilerFactory , null ) ! ;
401401 const moduleFactory = compilerFactory . createCompiler ( ) . compileModuleSync ( createModule (
402402 [ { provide : APP_INITIALIZER , useValue : ( ) => Promise . reject ( 'Test' ) , multi : true } ] ) ) ;
403403 defaultPlatform . bootstrapModuleFactory ( moduleFactory )
0 commit comments