From 08011ce9e41e7db319687b246671c20595a5baf1 Mon Sep 17 00:00:00 2001 From: Arian Santrach Date: Fri, 30 Mar 2018 21:13:51 +0200 Subject: [PATCH] test: removed third 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. --- test/parallel/test-http-res-write-after-end.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http-res-write-after-end.js b/test/parallel/test-http-res-write-after-end.js index 1d34cf6dcb4841..75cb25f0a63e0c 100644 --- a/test/parallel/test-http-res-write-after-end.js +++ b/test/parallel/test-http-res-write-after-end.js @@ -34,7 +34,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() {