Skip to content

Commit 71545e6

Browse files
mhamwalaBridgeAR
authored andcommitted
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: #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>
1 parent a8908f1 commit 71545e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-fs-write-sync.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tmpdir.refresh();
3434
const fd = fs.openSync(filename, 'w');
3535

3636
let written = fs.writeSync(fd, '');
37-
assert.strictEqual(0, written);
37+
assert.strictEqual(written, 0);
3838

3939
fs.writeSync(fd, 'foo');
4040

@@ -50,7 +50,7 @@ tmpdir.refresh();
5050
const fd = fs.openSync(filename, 'w');
5151

5252
let written = fs.writeSync(fd, '');
53-
assert.strictEqual(0, written);
53+
assert.strictEqual(written, 0);
5454

5555
fs.writeSync(fd, 'foo');
5656

@@ -66,7 +66,7 @@ tmpdir.refresh();
6666
const fd = fs.openSync(filename, 'w');
6767

6868
let written = fs.writeSync(fd, '');
69-
assert.strictEqual(0, written);
69+
assert.strictEqual(written, 0);
7070

7171
fs.writeSync(fd, 'foo');
7272

0 commit comments

Comments
 (0)