From 18633b72ba7e5df539d7457a83003f613bc1fc6b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 15 Oct 2026 06:15:57 +0200 Subject: [PATCH] test: type the fetch mock in the large HTML body test --- lib/__tests__/jmap-truncated-body.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/__tests__/jmap-truncated-body.test.ts b/lib/__tests__/jmap-truncated-body.test.ts index dbfef35b5..6a9ab2ddb 100644 --- a/lib/__tests__/jmap-truncated-body.test.ts +++ b/lib/__tests__/jmap-truncated-body.test.ts @@ -178,7 +178,7 @@ describe('JMAPClient truncated body refetch (#884)', () => { // a 300 kB newsletter came back truncated and was fetched twice. const client = await createConnectedClient(); const html = '' + 'x'.repeat(300_000) + ''; - fetchSpy.mockImplementation(async (_input, init) => { + fetchSpy.mockImplementation(async (_input: unknown, init?: RequestInit) => { const call = JSON.parse((init as RequestInit).body as string).methodCalls[0][1]; const cap = call.maxBodyValueBytes as number; return mockFetchResponse(200, {