Test fixes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ab822c6061
commit
acac77ad76
|
@ -29,10 +29,10 @@ describe('Component vnSearchbar', () => {
|
||||||
abstract: true
|
abstract: true
|
||||||
})
|
})
|
||||||
.state('foo.card.baz.index', {
|
.state('foo.card.baz.index', {
|
||||||
url: '/foo/:id/bar'
|
url: '/foo/:id/baz/index'
|
||||||
})
|
})
|
||||||
.state('foo.card.baz.edit', {
|
.state('foo.card.baz.edit', {
|
||||||
url: '/foo/:id/bar'
|
url: '/foo/:id/baz/:bazId/edit'
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ describe('Component vnSearchbar', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should keep the same card state but index when one result and it's already in card state but inside more than three-nested states`, () => {
|
it(`should keep the same card state but index when one result and it's already in card state but inside more than three-nested states`, () => {
|
||||||
$state.go('foo.card.baz.edit', {id: 1});
|
$state.go('foo.card.baz.edit', {id: 1, bazId: 1});
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
|
||||||
jest.spyOn($state, 'go');
|
jest.spyOn($state, 'go');
|
||||||
|
|
Loading…
Reference in New Issue