From 3a107b0117d73a9c0ad281cd9c036044b5d4c560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=2E=20D=C3=ADaz?= Date: Mon, 28 Oct 2024 03:35:02 +0100 Subject: [PATCH] imp: resquest + imp: project --- tests/mocks.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/mocks.mjs b/tests/mocks.mjs index 84785ed..08dd36c 100644 --- a/tests/mocks.mjs +++ b/tests/mocks.mjs @@ -4,7 +4,9 @@ export function mockFetch(data) { return jest.fn().mockImplementation(() => Promise.resolve({ ok: true, - json: () => data, + clone: () => { + return {json: () => Promise.resolve(data)}; + }, }), ); }