Skip to content

Commit

Permalink
test: fix args passed to strictEqual
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
aitchkhan authored and targos committed Jul 4, 2018
1 parent fe9888a commit 25dac95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-timers-immediate-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 25dac95

Please sign in to comment.