Skip to content
Browse files

test: remove 3rd argument from assert.strictEqual

If there is an AssertionError, the string literal is printed and not the
value of `r`. For debugging purposes, it is good to know if `r` is false
or null or something else.

PR-URL: #19707
Reviewed-By: Rich Trott <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Colin Ihrig <>
  • Loading branch information...
Axxxx0n authored and BethGriggs committed Mar 30, 2018
1 parent 3ca10fa commit bd9cc92e8d0267b58492ea4b83d5b62876bb0cf2
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/parallel/test-http-res-write-after-end.js
@@ -33,7 +33,8 @@ const server = http.Server(common.mustCall(function(req, res) {

const r = res.write('This should raise an error.');
assert.strictEqual(r, true, 'write after end should return true');
// write after end should return true
assert.strictEqual(r, true);

server.listen(0, function() {

0 comments on commit bd9cc92

Please sign in to comment.
You can’t perform that action at this time.