Skip to content

Commit

Permalink
test: don't use undocumented res.writeHeader alias
Browse files Browse the repository at this point in the history
res.writeHeader is an undocumented alias to res.writeHead
It's docs-deprecated in nodejs/node#11355
  • Loading branch information
ChALkeR committed Feb 26, 2017
1 parent a08189f commit 1653c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/broken-under-nyc-and-travis/whoami.js
Expand Up @@ -48,7 +48,7 @@ test('npm whoami with bearer auth', { timeout: 2 * 1000 }, function (t) {
t.equal(req.url, '/-/whoami')

res.setHeader('content-type', 'application/json')
res.writeHeader(200)
res.writeHead(200)
res.end(JSON.stringify({ username: 'wombat' }), 'utf8')
}

Expand Down

0 comments on commit 1653c7e

Please sign in to comment.