@@ -143,7 +143,8 @@ describe('applyRedirects', () => {
143143 describe ( 'lazy loading' , ( ) => {
144144 it ( 'should load config on demand' , ( ) => {
145145 const loadedConfig = new LoadedRouterConfig (
146- [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
146+ [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
147+ < any > 'injectorFactory' ) ;
147148 const loader = {
148149 load : ( injector : any , p : any ) => {
149150 if ( injector !== 'providedInjector' ) throw 'Invalid Injector' ;
@@ -171,7 +172,8 @@ describe('applyRedirects', () => {
171172
172173 it ( 'should load when all canLoad guards return true' , ( ) => {
173174 const loadedConfig = new LoadedRouterConfig (
174- [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
175+ [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
176+ < any > 'injectorFactory' ) ;
175177 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
176178
177179 const guard = ( ) => true ;
@@ -191,7 +193,8 @@ describe('applyRedirects', () => {
191193
192194 it ( 'should not load when any canLoad guards return false' , ( ) => {
193195 const loadedConfig = new LoadedRouterConfig (
194- [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
196+ [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
197+ < any > 'injectorFactory' ) ;
195198 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
196199
197200 const trueGuard = ( ) => true ;
@@ -216,7 +219,8 @@ describe('applyRedirects', () => {
216219
217220 it ( 'should not load when any canLoad guards is rejected (promises)' , ( ) => {
218221 const loadedConfig = new LoadedRouterConfig (
219- [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
222+ [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
223+ < any > 'injectorFactory' ) ;
220224 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
221225
222226 const trueGuard = ( ) => Promise . resolve ( true ) ;
@@ -237,7 +241,8 @@ describe('applyRedirects', () => {
237241
238242 it ( 'should work with objects implementing the CanLoad interface' , ( ) => {
239243 const loadedConfig = new LoadedRouterConfig (
240- [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
244+ [ { path : 'b' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
245+ < any > 'injectorFactory' ) ;
241246 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
242247
243248 const guard = { canLoad : ( ) => Promise . resolve ( true ) } ;
@@ -254,7 +259,8 @@ describe('applyRedirects', () => {
254259
255260 it ( 'should work with absolute redirects' , ( ) => {
256261 const loadedConfig = new LoadedRouterConfig (
257- [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
262+ [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
263+ < any > 'injectorFactory' ) ;
258264
259265 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
260266
@@ -269,7 +275,8 @@ describe('applyRedirects', () => {
269275
270276 it ( 'should load the configuration only once' , ( ) => {
271277 const loadedConfig = new LoadedRouterConfig (
272- [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
278+ [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
279+ < any > 'injectorFactory' ) ;
273280
274281 let called = false ;
275282 const loader = {
@@ -295,7 +302,8 @@ describe('applyRedirects', () => {
295302
296303 it ( 'should load the configuration of a wildcard route' , ( ) => {
297304 const loadedConfig = new LoadedRouterConfig (
298- [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
305+ [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
306+ < any > 'injectorFactory' ) ;
299307
300308 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
301309
@@ -308,7 +316,8 @@ describe('applyRedirects', () => {
308316
309317 it ( 'should load the configuration after a local redirect from a wildcard route' , ( ) => {
310318 const loadedConfig = new LoadedRouterConfig (
311- [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
319+ [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
320+ < any > 'injectorFactory' ) ;
312321
313322 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
314323
@@ -322,7 +331,8 @@ describe('applyRedirects', () => {
322331
323332 it ( 'should load the configuration after an absolute redirect from a wildcard route' , ( ) => {
324333 const loadedConfig = new LoadedRouterConfig (
325- [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ) ;
334+ [ { path : '' , component : ComponentB } ] , < any > 'stubInjector' , < any > 'stubFactoryResolver' ,
335+ < any > 'injectorFactory' ) ;
326336
327337 const loader = { load : ( injector : any , p : any ) => of ( loadedConfig ) } ;
328338
0 commit comments