Skip to content

Commit

Permalink
test: cleanup test-fs-watch.js
Browse files Browse the repository at this point in the history
Reversed "actual" and "expected" arguments for assert.strictEqual().

Replaced constructor with regular expression for assert.throws().

PR-URL: #12595
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Bryan English <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
  • Loading branch information
RobotMermaid authored and MylesBorins committed May 18, 2017
1 parent a1de1ab commit b09f738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-fs-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ assert.doesNotThrow(
function() {
const watcher = fs.watch(testsubdir, function(event, filename) {
const renameEv = common.isSunOS || common.isAix ? 'change' : 'rename';
assert.strictEqual(renameEv, event);
assert.strictEqual(event, renameEv);
if (expectFilePath) {
assert.strictEqual(filename, 'newfile.txt');
} else {
Expand Down

0 comments on commit b09f738

Please sign in to comment.