Test fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-03-18 15:59:03 +01:00
parent ab822c6061
commit acac77ad76
1 changed files with 3 additions and 3 deletions

View File

@ -29,10 +29,10 @@ describe('Component vnSearchbar', () => {
abstract: true
})
.state('foo.card.baz.index', {
url: '/foo/:id/bar'
url: '/foo/:id/baz/index'
})
.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`, () => {
$state.go('foo.card.baz.edit', {id: 1});
$state.go('foo.card.baz.edit', {id: 1, bazId: 1});
$scope.$apply();
jest.spyOn($state, 'go');