refactor(api_mock.ts): remove async from mockFetch to match signature
This commit is contained in:
@@ -29,7 +29,7 @@ export function mockFetch(
|
|||||||
_originalFetch = globalThis.fetch;
|
_originalFetch = globalThis.fetch;
|
||||||
_calls = [];
|
_calls = [];
|
||||||
|
|
||||||
globalThis.fetch = async (
|
globalThis.fetch = (
|
||||||
input: string | URL | Request,
|
input: string | URL | Request,
|
||||||
init?: RequestInit,
|
init?: RequestInit,
|
||||||
): Promise<Response> => {
|
): Promise<Response> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user