test: remove string error from strictEqual

Removes the string error from the assertion call to improve the error
message shown on screen when the test fails.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Fernando Doglio 2018-06-12 14:53:54 -03:00 committed by Michaël Zasso
parent c041fd2dc7
commit fd520e7b43
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -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);