mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
test: cleanup test-fs-watch.js
Reversed "actual" and "expected" arguments for assert.strictEqual(). Replaced constructor with regular expression for assert.throws(). PR-URL: https://github.com/nodejs/node/pull/12595 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
a1de1abcdd
commit
b09f73813e
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user