test: use correct argument order for assert.strictEqual()
The previous code did not pass correct argument order to assert.strictEqual(). Before: First argument provided is expected value Second argument provided is actual value After: First argument provided is actual value Second argument provided is expected value PR-URL: https://github.com/nodejs/node/pull/23527 Reviewed-By: Hitesh Kanwathirtha <digitalinfinity@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
a0aa7ada0e
commit
08b1047ef1
@ -50,10 +50,10 @@ process.on('exit', function() {
|
||||
fs.unlinkSync(filepathTwoAbs);
|
||||
fs.unlinkSync(filenameThree);
|
||||
fs.unlinkSync(filenameFour);
|
||||
assert.strictEqual(1, watchSeenOne);
|
||||
assert.strictEqual(2, watchSeenTwo);
|
||||
assert.strictEqual(1, watchSeenThree);
|
||||
assert.strictEqual(1, watchSeenFour);
|
||||
assert.strictEqual(watchSeenOne, 1);
|
||||
assert.strictEqual(watchSeenTwo, 2);
|
||||
assert.strictEqual(watchSeenThree, 1);
|
||||
assert.strictEqual(watchSeenFour, 1);
|
||||
});
|
||||
|
||||
|
||||
@ -134,7 +134,7 @@ setTimeout(function() {
|
||||
{ // Does not throw.
|
||||
function a() {
|
||||
++watchSeenFour;
|
||||
assert.strictEqual(1, watchSeenFour);
|
||||
assert.strictEqual(watchSeenFour, 1);
|
||||
fs.unwatchFile(`.${path.sep}${filenameFour}`, a);
|
||||
}
|
||||
fs.watchFile(filenameFour, a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user