Skip to content

Commit 11a84a7

Browse files
mhamwalaMylesBorins
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: George Adams <[email protected]>
1 parent e599889 commit 11a84a7

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)