Updating mocks.

This commit is contained in:
mike12345567 2021-12-09 14:12:01 +00:00
parent 81c1644a78
commit b48c30a7c0
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(),