mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
test: type the fetch mock in the large HTML body test
This commit is contained in:
@@ -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 = '<html>' + 'x'.repeat(300_000) + '</html>';
|
||||
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, {
|
||||
|
||||
Reference in New Issue
Block a user