We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e040ec9 commit 080346eCopy full SHA for 080346e
tests/headers.test.ts
@@ -16,6 +16,11 @@ describe(`request()`, () => {
16
await request(ctx.url, `{ me { id } }`, {}, headers)
17
expect(mock.requests[0]?.headers[headerFoo.name]).toEqual(headerFoo.value)
18
})
19
+ test(`can override built in headers`, async () => {
20
+ const mock = ctx.res()
21
+ await request(ctx.url, `{ me { id } }`, {}, { 'content-type': `application/json2` })
22
+ expect(mock.requests[0]?.headers[`content-type`]).toEqual(`application/json2`)
23
+ })
24
25
26
describe(`using class`, () => {
0 commit comments