Skip to content

Commit 8b47c9d

Browse files
sq test
1 parent 773ff3a commit 8b47c9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/lazyLoadSpec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ describe('future state', function () {
305305

306306
let lazyB = { name: 'B', url: '/b' };
307307
let lazyBA = { name: 'B.A', url: '/A' };
308-
let lazyBB = { name: 'B.B', url: '/B' };
308+
let lazyBAC = { name: 'B.A.C', url: '/C' };
309309

310310
beforeEach(() => {
311311
// Re-create each time because the state is mutated: the lazyLoad function is removed after success
@@ -348,7 +348,7 @@ describe('future state', function () {
348348
});
349349

350350
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] }); });
352352
$registry.register(futureB);
353353

354354
$state.go('B.A').then(() => {
@@ -358,7 +358,7 @@ describe('future state', function () {
358358
});
359359

360360
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] }); });
362362
$registry.register(futureB);
363363

364364
$state.go('B.A').then(() => {
@@ -368,7 +368,7 @@ describe('future state', function () {
368368
});
369369

370370
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] }); });
372372
$registry.register(futureB);
373373

374374
$state.go('B.A').then(() => {

0 commit comments

Comments
 (0)