@@ -305,7 +305,7 @@ describe('future state', function () {
305
305
306
306
let lazyB = { name : 'B' , url : '/b' } ;
307
307
let lazyBA = { name : 'B.A' , url : '/A' } ;
308
- let lazyBB = { name : 'B.B ' , url : '/B ' } ;
308
+ let lazyBAC = { name : 'B.A.C ' , url : '/C ' } ;
309
309
310
310
beforeEach ( ( ) => {
311
311
// Re-create each time because the state is mutated: the lazyLoad function is removed after success
@@ -348,7 +348,7 @@ describe('future state', function () {
348
348
} ) ;
349
349
350
350
it ( 'should not care about the order of lazy loaded states (1)' , ( done ) => {
351
- futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyB , lazyBA , lazyBB ] } ) ; } ) ;
351
+ futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyB , lazyBA , lazyBAC ] } ) ; } ) ;
352
352
$registry . register ( futureB ) ;
353
353
354
354
$state . go ( 'B.A' ) . then ( ( ) => {
@@ -358,7 +358,7 @@ describe('future state', function () {
358
358
} ) ;
359
359
360
360
it ( 'should not care about the order of lazy loaded states (2)' , ( done ) => {
361
- futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyBA , lazyB , lazyBB ] } ) ; } ) ;
361
+ futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyBA , lazyB , lazyBAC ] } ) ; } ) ;
362
362
$registry . register ( futureB ) ;
363
363
364
364
$state . go ( 'B.A' ) . then ( ( ) => {
@@ -368,7 +368,7 @@ describe('future state', function () {
368
368
} ) ;
369
369
370
370
it ( 'should not care about the order of lazy loaded states (3)' , ( done ) => {
371
- futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyBB , lazyBA , lazyB ] } ) ; } ) ;
371
+ futureB . lazyLoad = ( ) => new Promise ( resolve => { resolve ( { states : [ lazyBAC , lazyBA , lazyB ] } ) ; } ) ;
372
372
$registry . register ( futureB ) ;
373
373
374
374
$state . go ( 'B.A' ) . then ( ( ) => {
0 commit comments