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 9338d5d commit 97210d6Copy full SHA for 97210d6
1 file changed
mod_test.ts
@@ -115,6 +115,13 @@ describe('expectHeader', () => {
115
const res = await fetch('/')
116
res.expectHeader('A', ['1', '2', '3'])
117
})
118
+ it('expects if header is not present', async ()=> {
119
+ const handler: Handler = () =>
120
+ new Response('Hello World')
121
+ const fetch = makeFetch(handler)
122
+ const res = await fetch('/')
123
+ res.expectHeader('A', null)
124
+ })
125
126
127
describe('expectBody', () => {
0 commit comments