test: swap the order of arguments
Swapped the actual and expected arguments in `assert.strictEqual()` calls. Arguments are now in correct order. Literal value is now the second argument and the value returned by the function is the first argument. PR-URL: https://github.com/nodejs/node/pull/24134 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: George Adams <george.adams@uk.ibm.com>
This commit is contained in:
parent
f884a5767b
commit
2535aa5f7d
@ -34,7 +34,7 @@ tmpdir.refresh();
|
||||
const fd = fs.openSync(filename, 'w');
|
||||
|
||||
let written = fs.writeSync(fd, '');
|
||||
assert.strictEqual(0, written);
|
||||
assert.strictEqual(written, 0);
|
||||
|
||||
fs.writeSync(fd, 'foo');
|
||||
|
||||
@ -50,7 +50,7 @@ tmpdir.refresh();
|
||||
const fd = fs.openSync(filename, 'w');
|
||||
|
||||
let written = fs.writeSync(fd, '');
|
||||
assert.strictEqual(0, written);
|
||||
assert.strictEqual(written, 0);
|
||||
|
||||
fs.writeSync(fd, 'foo');
|
||||
|
||||
@ -66,7 +66,7 @@ tmpdir.refresh();
|
||||
const fd = fs.openSync(filename, 'w');
|
||||
|
||||
let written = fs.writeSync(fd, '');
|
||||
assert.strictEqual(0, written);
|
||||
assert.strictEqual(written, 0);
|
||||
|
||||
fs.writeSync(fd, 'foo');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user