mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
a0aa7ada0e
commit
08b1047ef1
1 file changed
+5
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user