Skip to content

Commit

Permalink
imp: resquest + imp: project
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Oct 28, 2024
1 parent bde63fd commit 3a107b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/mocks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export function mockFetch(data) {
return jest.fn().mockImplementation(() =>
Promise.resolve({
ok: true,
json: () => data,
clone: () => {
return {json: () => Promise.resolve(data)};
},
}),
);
}

0 comments on commit 3a107b0

Please sign in to comment.