Updating mocks.
This commit is contained in:
parent
1f6a30b985
commit
2dd1074ba5
|
@ -6,6 +6,9 @@ module FetchMock {
|
|||
return {
|
||||
status,
|
||||
headers: {
|
||||
raw: () => {
|
||||
return { "content-type": ["application/json"] }
|
||||
},
|
||||
get: () => {
|
||||
return ["application/json"]
|
||||
},
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
jest.mock("node-fetch", () =>
|
||||
jest.fn(() => ({
|
||||
headers: {
|
||||
raw: () => {
|
||||
return { "content-type": ["application/json"] }
|
||||
},
|
||||
get: () => ["application/json"]
|
||||
},
|
||||
json: jest.fn(),
|
||||
|
|
Loading…
Reference in New Issue