Some further mock fixes.
This commit is contained in:
parent
a8e12dfb6b
commit
e98ad4f04c
1 changed files with 4 additions and 2 deletions
|
@ -17,8 +17,10 @@ module FetchMock {
|
||||||
raw: () => {
|
raw: () => {
|
||||||
return { "content-type": ["application/json"] }
|
return { "content-type": ["application/json"] }
|
||||||
},
|
},
|
||||||
get: () => {
|
get: (name: string) => {
|
||||||
return ["application/json"]
|
if (name.toLowerCase() === "content-type") {
|
||||||
|
return ["application/json"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
json: async () => {
|
json: async () => {
|
||||||
|
|
Loading…
Reference in a new issue