1
0
Fork 0
mirror of synced 2024-08-23 14:01:34 +12:00

Some further mock fixes.

This commit is contained in:
mike12345567 2024-05-15 14:50:04 +01:00
parent a8e12dfb6b
commit e98ad4f04c

View file

@ -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 () => {