diff --git a/test/sequential/test-fs-watch.js b/test/sequential/test-fs-watch.js index 8a8d40c1fbd..1780099eba4 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 {