mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
0b2ad91ad3
commit
24ee745f20
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user