Fix lint issues in tests-fs-watch.js

This commit is contained in:
David Humphrey 2018-07-26 17:54:26 -04:00
parent 49931722cc
commit ab87c7f14a
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ describe('node.js tests: https://github.com/joyent/node/blob/master/test/simple/
watcher.close(); watcher.close();
fs.writeFile(filenameOne, 'hello again', function(error) { fs.writeFile(filenameOne, 'hello again', function(error) {
if(error) throw error;
expect(changes).to.equal(1); expect(changes).to.equal(1);
done(); 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) { it('should get change event for writeFile() using fs.watch() only', function(done) {
var fs = util.fs(); var fs = util.fs();
var changes = 0;
var watcher = fs.watch(filenameTwo, function(event, filename) { var watcher = fs.watch(filenameTwo, function(event, filename) {
expect(event).to.equal('change'); expect(event).to.equal('change');