From b09f73813e151fc70f230afe0d56bc6c47fa9496 Mon Sep 17 00:00:00 2001 From: RobotMermaid Date: Sat, 22 Apr 2017 11:58:11 -0700 Subject: [PATCH] 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 Reviewed-By: Bryan English Reviewed-By: Santiago Gimeno Reviewed-By: Gibson Fahnestock --- test/sequential/test-fs-watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-fs-watch.js b/test/sequential/test-fs-watch.js index 8a8d40c1fbda57..1780099eba4f9b 100644 --- a/test/sequential/test-fs-watch.js +++ b/test/sequential/test-fs-watch.js @@ -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 {