diff --git a/src/hooks/useCommitChanges.test.js b/src/hooks/useCommitChanges.test.js index 4d72b499..4bd67ffd 100644 --- a/src/hooks/useCommitChanges.test.js +++ b/src/hooks/useCommitChanges.test.js @@ -54,7 +54,7 @@ describe('useCommitChanges', () => { resetQueries: mockResetQueries, }); - buildSearch.mockImplementation((criteria, search) => `?progress=${criteria}&${search}`); + buildSearch.mockImplementation(({ progress }, search) => `?progress=${progress}&${search}`); useSearchParams.mockReturnValue({ criteria: 'testCriteria',