From acac77ad76111cc13aa42e0af0e4b670d0bd20fe Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 18 Mar 2020 15:59:03 +0100 Subject: [PATCH] Test fixes --- front/core/components/searchbar/searchbar.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/core/components/searchbar/searchbar.spec.js b/front/core/components/searchbar/searchbar.spec.js index 95035f504..e4f58d294 100644 --- a/front/core/components/searchbar/searchbar.spec.js +++ b/front/core/components/searchbar/searchbar.spec.js @@ -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');