Skip to content

Commit

Permalink
add test for 700 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchurch committed May 4, 2024
1 parent cca1438 commit ce18152
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/res.status.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ describe('res', function () {
})
})

describe('when "code" is 700', function () {
it('should set the response status code to 700', function (done) {
var app = express()

app.use(function (req, res) {
res.status(700).end()
})

request(app)
.get('/')
.expect(501, done)
})
})

describe('when "code" is 200.00', function () {
it('should set the response status code to 200', function (done) {
var app = express()
Expand Down

0 comments on commit ce18152

Please sign in to comment.