Permalink
Browse files

test: fix args passed to strictEqual

The third argument passed to asert.strictEqual() displays the message
passed as third argument and does not report the difference between
actual and expected if the test is failing.
Hence, the third argument has been removed.

PR-URL: #21584
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information...
aitchkhan authored and trivikr committed Jun 27, 2018
1 parent 0b2ad91 commit 24ee745f209f27bda67757cb7398489f430fd80c
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-timers-immediate-queue.js
@@ -50,5 +50,5 @@ for (let i = 0; i < QUEUE; i++)
process.on('exit', function() {
console.log('hit', hit);
assert.strictEqual(hit, QUEUE, 'We ticked between the immediate queue');
assert.strictEqual(hit, QUEUE);
});

0 comments on commit 24ee745

Please sign in to comment.