Skip to content

Commit

Permalink
Remove checking old behavior for statusText default value
Browse files Browse the repository at this point in the history
  • Loading branch information
CrOrc committed Apr 11, 2019
1 parent 50669a5 commit 7b4da95
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/test.js
Expand Up @@ -604,24 +604,6 @@ exercise.forEach(function(exerciseMode) {
assert.isTrue(res.ok)
}
)
featureDependent(test, !emptyDefaultStatusText, 'default status is 200 OK', function() {
var res = new Response()
assert.equal(res.status, 200)
assert.equal(res.statusText, 'OK')
assert.isTrue(res.ok)
})

featureDependent(
test,
!emptyDefaultStatusText,
'default status is 200 OK when an explicit undefined status code is passed',
function() {
var res = new Response('', {status: undefined})
assert.equal(res.status, 200)
assert.equal(res.statusText, 'OK')
assert.isTrue(res.ok)
}
)

testBodyExtract(function(body) {
return new Response(body)
Expand Down

0 comments on commit 7b4da95

Please sign in to comment.