Skip to content

Commit

Permalink
test: swap the order of arguments
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mhamwala authored and MylesBorins committed Dec 26, 2018
1 parent e599889 commit 11a84a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-fs-write-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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');

Expand All @@ -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');

Expand Down

0 comments on commit 11a84a7

Please sign in to comment.