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(),