From ab87c7f14a126a0cbffa97ba38c5b7d4e7db2778 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Thu, 26 Jul 2018 17:54:26 -0400 Subject: [PATCH] Fix lint issues in tests-fs-watch.js --- tests/spec/node-js/simple/test-fs-watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec/node-js/simple/test-fs-watch.js b/tests/spec/node-js/simple/test-fs-watch.js index 6db48be..c7d7fef 100644 --- a/tests/spec/node-js/simple/test-fs-watch.js +++ b/tests/spec/node-js/simple/test-fs-watch.js @@ -27,6 +27,7 @@ describe('node.js tests: https://github.com/joyent/node/blob/master/test/simple/ watcher.close(); fs.writeFile(filenameOne, 'hello again', function(error) { + if(error) throw error; expect(changes).to.equal(1); done(); }); @@ -37,7 +38,6 @@ describe('node.js tests: https://github.com/joyent/node/blob/master/test/simple/ it('should get change event for writeFile() using fs.watch() only', function(done) { var fs = util.fs(); - var changes = 0; var watcher = fs.watch(filenameTwo, function(event, filename) { expect(event).to.equal('change');