Updating mocks.
This commit is contained in:
parent
81c1644a78
commit
b48c30a7c0
|
@ -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