fix(common): fix fetch mock in test

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-10-19 19:54:05 +02:00 committed by renovate[bot]
parent 403593c9d1
commit 982783c8cf

View file

@ -35,7 +35,7 @@ export const expectFetch = (
json: jest.fn(() => (responseBody ? Promise.resolve(responseBody) : Promise.reject())) json: jest.fn(() => (responseBody ? Promise.resolve(responseBody) : Promise.reject()))
}) })
) )
}) }) as typeof global.fetch
} }
const mapCodeToText = (code: number): string => { const mapCodeToText = (code: number): string => {
switch (code) { switch (code) {