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 { return {
status, status,
headers: { headers: {
raw: () => {
return { "content-type": ["application/json"] }
},
get: () => { get: () => {
return ["application/json"] return ["application/json"]
}, },

View File

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