diff --git a/web/src/lib/components/wanted/DownloadList.test.ts b/web/src/lib/components/wanted/DownloadList.test.ts index 8bf1b6b4..605b42e2 100644 --- a/web/src/lib/components/wanted/DownloadList.test.ts +++ b/web/src/lib/components/wanted/DownloadList.test.ts @@ -51,10 +51,10 @@ function download(id: string, extra: Partial = {}): Download { afterEach(() => vi.clearAllMocks()); function setup(items: Download[], clientsDown: ClientDown[] = []) { + // The Activity page carries the clients not answering beside its items. + const page = { items, total: items.length, limit: 50, offset: 0, clients_down: clientsDown }; vi.mocked(createDownloadsQuery).mockReturnValue( - mockInfiniteQuery({ - pages: [{ items, total: items.length, limit: 50, offset: 0, clients_down: clientsDown }] - }) as unknown as ReturnType< + mockInfiniteQuery({ pages: [page] }) as unknown as ReturnType< typeof createDownloadsQuery > );