Rely on default qs value.

This commit is contained in:
Kia Lam 2021-10-07 09:52:33 -07:00
parent 4b7faea552
commit 68f44c01ea
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export default function useWsJobs(initialJobs, fetchJobsById, qsConfig) {
return;
}
setJobsToFetch([]);
const newJobs = await fetchJobsById(throttledJobsToFetch, {});
const newJobs = await fetchJobsById(throttledJobsToFetch);
const deduplicated = newJobs.filter(
(job) => !jobs.find((j) => j.id === job.id)
);

View File

@ -123,7 +123,7 @@ describe('useWsJobs hook', () => {
);
});
expect(fetch).toHaveBeenCalledWith([2], {});
expect(fetch).toHaveBeenCalledWith([2]);
WS.clean();
});
});