From bc198a93895a0365e052cb9400a842adb499b53c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 10 Oct 2026 15:35:21 -0400 Subject: [PATCH] fix: the Activity test's page carries clients_down as a value, not a literal Page would refuse (M502 #5523) Co-Authored-By: Claude Opus 5.5 --- web/src/lib/components/wanted/DownloadList.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 > );