Skip to content

Commit

Permalink
test: remove string error from strictEqual
Browse files Browse the repository at this point in the history
Removes the string error from the assertion call to improve the error
message shown on screen when the test fails.

PR-URL: #21292
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
deleteman authored and targos committed Jun 24, 2018
1 parent 02bc99d commit 91f111f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const stream = require('stream');
const writable = new stream.Writable();

writable._writev = common.mustCall((chunks, cb) => {
assert.strictEqual(chunks.length, 2, 'two chunks to write');
assert.strictEqual(chunks.length, 2);
cb();
}, 1);

Expand Down

0 comments on commit 91f111f

Please sign in to comment.