mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
fix(common): fix fetch mock in test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
403593c9d1
commit
982783c8cf
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue