diff options
Diffstat (limited to 'test/sequential/test-fs-watch.js')
-rw-r--r-- | test/sequential/test-fs-watch.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/sequential/test-fs-watch.js b/test/sequential/test-fs-watch.js index d92a10cd80..1cfaad9b3e 100644 --- a/test/sequential/test-fs-watch.js +++ b/test/sequential/test-fs-watch.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common'); var assert = require('assert'); var path = require('path'); @@ -41,7 +42,7 @@ fs.writeFileSync(filepathOne, 'hello'); assert.doesNotThrow( function() { - var watcher = fs.watch(filepathOne) + var watcher = fs.watch(filepathOne); watcher.on('change', function(event, filename) { assert.equal('change', event); @@ -82,7 +83,7 @@ setTimeout(function() { }, 20); try { fs.unlinkSync(filepathThree); } catch (e) {} -try { fs.mkdirSync(testsubdir, 0700); } catch (e) {} +try { fs.mkdirSync(testsubdir, 0o700); } catch (e) {} assert.doesNotThrow( function() { @@ -123,7 +124,7 @@ assert.throws(function() { oldhandle.close(); // clean up assert.throws(function() { - var w = fs.watchFile(__filename, {persistent:false}, function(){}); + var w = fs.watchFile(__filename, {persistent:false}, function() {}); oldhandle = w._handle; w._handle = { stop: w._handle.stop }; w.stop(); |