Skip to content

Commit 9468d42

Browse files
committed
test: fix to selected category options order in URL
HCRC-178
1 parent fa268fd commit 9468d42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/hobbies-helsinki/src/domain/search/eventSearch/advancedSearch/__tests__

apps/hobbies-helsinki/src/domain/search/eventSearch/advancedSearch/__tests__/Search.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ it('should change search query after clicking category menu item', async () => {
223223
expect(router).toMatchObject({
224224
pathname,
225225
// eslint-disable-next-line @stylistic/max-len
226-
asPath: `${pathname}?${EVENT_SEARCH_FILTERS.CATEGORIES}=movie_and_media%2Cmusic%2Cgames&${EVENT_SEARCH_FILTERS.TEXT}=jazz`,
226+
asPath: `${pathname}?${EVENT_SEARCH_FILTERS.CATEGORIES}=music%2Cgames%2Cmovie_and_media&${EVENT_SEARCH_FILTERS.TEXT}=jazz`,
227227
query: {
228-
[EVENT_SEARCH_FILTERS.CATEGORIES]: 'movie_and_media,music,games',
228+
[EVENT_SEARCH_FILTERS.CATEGORIES]: 'music,games,movie_and_media',
229229
[EVENT_SEARCH_FILTERS.TEXT]: 'jazz',
230230
},
231231
});

0 commit comments

Comments
 (0)