1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

Updating mocks.

This commit is contained in:
mike12345567 2021-12-09 14:12:01 +00:00
parent 1f6a30b985
commit 2dd1074ba5
2 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,9 @@ module FetchMock {
return {
status,
headers: {
raw: () => {
return { "content-type": ["application/json"] }
},
get: () => {
return ["application/json"]
},

View file

@ -1,6 +1,9 @@
jest.mock("node-fetch", () =>
jest.fn(() => ({
headers: {
raw: () => {
return { "content-type": ["application/json"] }
},
get: () => ["application/json"]
},
json: jest.fn(),