Skip to content

Commit

Permalink
remove invalid-headers test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Jul 17, 2023
1 parent 408d3b6 commit e3f6590
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions test/server.js
Expand Up @@ -121,14 +121,6 @@ const routes = {
'Content-Type': 'text/html; charset=utf-8'
})
res.end()
},
'/invalid-headers': function(res) {
res.writeHead(200, {
'Content-Type': 'text/plain',
'Invalid Header': 'valid value',
'Westworld-S01': "<3"
})
res.end()
}
}

Expand Down
6 changes: 0 additions & 6 deletions test/test.js
Expand Up @@ -1283,12 +1283,6 @@ exercise.forEach(function(exerciseMode) {
assert.equal(response.headers.get('Content-Type'), 'text/html; charset=utf-8')
})
})
test('parses invalid headers', function() {
return fetch('/invalid-headers').then(function(response) {
assert.equal(response.headers.get('Content-Type'), 'text/plain')
assert.equal(response.headers.get('Westworld-S01'), '<3')
})
})
})

// https://fetch.spec.whatwg.org/#methods
Expand Down

0 comments on commit e3f6590

Please sign in to comment.