Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed May 1, 2023
1 parent 9338d5d commit 97210d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ describe('expectHeader', () => {
const res = await fetch('/')
res.expectHeader('A', ['1', '2', '3'])
})
it('expects if header is not present', async ()=> {
const handler: Handler = () =>
new Response('Hello World')
const fetch = makeFetch(handler)
const res = await fetch('/')
res.expectHeader('A', null)
})
})

describe('expectBody', () => {
Expand Down

0 comments on commit 97210d6

Please sign in to comment.