Skip to content

Commit

Permalink
tests: fix test case for 500 HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 22, 2022
1 parent a1a4f6d commit 24cf06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ describe('finalhandler(req, res)', function () {
})

it('should handle HEAD', function (done) {
request(createServer())
request(createServer(createError('boom!')))
.head('/foo')
.expect(404)
.expect(500)
.expect(shouldNotHaveBody())
.end(done)
})
Expand Down

0 comments on commit 24cf06e

Please sign in to comment.