Self-review

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-09-05 21:38:00 +02:00
parent 1de92b66ac
commit 2e0adeb664
3 changed files with 2 additions and 4 deletions
@@ -75,7 +75,7 @@ describe('SearchPage', () => {
const expectedFilters = { [expectedFilterField]: expectedFilterValue };
const expectedPageCursor = 'SOMEPAGE';
// e.g. ?query=petstore&pageCursor=1&filters[lifecycle][]=experimental&filters[kind]=Component
// e.g. ?query=petstore&pageCursor=SOMEPAGE&filters[lifecycle][]=experimental&filters[kind]=Component
(useLocation as jest.Mock).mockReturnValue({
search: `?query=${expectedTerm}&types[]=${expectedTypes[0]}&filters[${expectedFilterField}]=${expectedFilterValue}&pageCursor=${expectedPageCursor}`,
});