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: https://github.com/nodejs/node/pull/19707
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Arian Santrach authored and Beth Griggs committed 2018-12-04 15:39:35 +00:00
1 parent 3ca10faf00
commit bd9cc92e8d
1 file changed
+2 -1
@@ -33,7 +33,8 @@ const server = http.Server(common.mustCall(function(req, res) {
res.end();
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() {