File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ describe('state', function () {
395
395
} ) ) ;
396
396
397
397
it ( "should return all of the state's config" , inject ( function ( $state ) {
398
- var list = $state . getAll ( ) ;
398
+ var list = $state . getAll ( ) . sort ( function ( a , b ) { return ( a . name > b . name ) - ( b . name > a . name ) ; } ) ;
399
399
var names = [
400
400
'' , // implicit root state
401
401
'A' ,
@@ -407,14 +407,14 @@ describe('state', function () {
407
407
'H' ,
408
408
'HH' ,
409
409
'HHH' ,
410
- 'home' ,
411
- 'home.item' ,
412
410
'about' ,
413
411
'about.person' ,
414
412
'about.person.item' ,
415
413
'about.sidebar' ,
416
414
'about.sidebar.item' ,
417
415
'first' ,
416
+ 'home' ,
417
+ 'home.item' ,
418
418
'second'
419
419
] ;
420
420
expect ( list . map ( function ( state ) { return state . name ; } ) ) . toEqual ( names ) ;
You can’t perform that action at this time.
0 commit comments