Skip to content

Commit 6794956

Browse files
committed
fix: HeroSearchBar tests
1 parent 1bbe3a5 commit 6794956

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

components/Landing/HeroSearchbar.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ describe('HeroSearchbar', () => {
2929
submitBtn.trigger('click');
3030

3131
expect(wrapper.vm.$router.push).toHaveBeenCalledWith({
32-
path: '/tool',
33-
query: { search: '' },
32+
path: '/tool/search',
33+
query: { q: '' },
3434
});
3535
});
3636

@@ -43,8 +43,8 @@ describe('HeroSearchbar', () => {
4343
await searchInput.trigger('keyup.enter');
4444

4545
expect(wrapper.vm.$router.push).toHaveBeenCalledWith({
46-
path: '/tool',
47-
query: { search: '' },
46+
path: '/tool/search',
47+
query: { q: '' },
4848
});
4949
});
5050

@@ -61,8 +61,8 @@ describe('HeroSearchbar', () => {
6161
submitBtn.trigger('click');
6262

6363
expect(wrapper.vm.$router.push).toHaveBeenCalledWith({
64-
path: '/tool',
65-
query: { search: 'Random Tool Name' },
64+
path: '/tool/search',
65+
query: { q: 'Random Tool Name' },
6666
});
6767
});
6868
});

0 commit comments

Comments
 (0)