Updating mocks.
This commit is contained in:
parent
1f6a30b985
commit
2dd1074ba5
|
@ -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"]
|
||||||
},
|
},
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue