Skip to content

Commit

Permalink
Cleanup test descriptions. Remove redundant tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrOrc committed Apr 9, 2019
1 parent c69500b commit 50669a5
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions test/test.js
Expand Up @@ -586,7 +586,7 @@ exercise.forEach(function(exerciseMode) {

// https://fetch.spec.whatwg.org/#response-class
suite('Response', function() {
featureDependent(test, emptyDefaultStatusText, "default status is 200 ''", function() {
featureDependent(test, emptyDefaultStatusText, 'default status is 200', function() {
var res = new Response()
assert.equal(res.status, 200)
assert.equal(res.statusText, '')
Expand All @@ -596,7 +596,7 @@ exercise.forEach(function(exerciseMode) {
featureDependent(
test,
emptyDefaultStatusText,
"default status is 200 '' when an explicit undefined status code is passed",
'default status is 200 when an explicit undefined status code is passed',
function() {
var res = new Response('', {status: undefined})
assert.equal(res.status, 200)
Expand All @@ -622,24 +622,6 @@ exercise.forEach(function(exerciseMode) {
assert.isTrue(res.ok)
}
)
featureDependent(test, exerciseMode !== 'native', "default status is 200 ''", function() {
var res = new Response()
assert.equal(res.status, 200)
assert.equal(res.statusText, '')
assert.isTrue(res.ok)
})

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

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

0 comments on commit 50669a5

Please sign in to comment.