Skip to content

Commit

Permalink
reword test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Apr 17, 2020
1 parent 1ca6960 commit adc2a7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var assert = require('assert')
var http = require('http')

Expand Down Expand Up @@ -44,6 +45,10 @@ describe('status', function () {
assert.throws(status.bind(null, 299), /invalid status code/)
assert.throws(status.bind(null, 310), /invalid status code/)
})

it('should throw for discontinued status code', function () {
assert.throws(status.bind(null, 306), /invalid status code/)
})
})

describe('when given a string', function () {
Expand Down Expand Up @@ -126,9 +131,4 @@ describe('status', function () {
assert(status.retry[504])
})
})
describe('Code 306', function () {
it('should throw for code 306', function () {
assert.throws(status.bind(null, 306), /invalid status code/)
})
})
})

0 comments on commit adc2a7e

Please sign in to comment.