We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987b07e commit 4ac2edbCopy full SHA for 4ac2edb
test/stateSpec.js
@@ -395,7 +395,7 @@ describe('state', function () {
395
}));
396
397
it("should return all of the state's config", inject(function ($state) {
398
- var list = $state.getAll();
+ var list = $state.getAll().sort(function(a, b) { return (a.name > b.name) - (b.name > a.name); });
399
var names = [
400
'', // implicit root state
401
'A',
@@ -407,14 +407,14 @@ describe('state', function () {
407
'H',
408
'HH',
409
'HHH',
410
- 'home',
411
- 'home.item',
412
'about',
413
'about.person',
414
'about.person.item',
415
'about.sidebar',
416
'about.sidebar.item',
417
'first',
+ 'home',
+ 'home.item',
418
'second'
419
];
420
expect(list.map(function(state) { return state.name; })).toEqual(names);
0 commit comments