diff --git a/tests/spec/fs.watchFile.spec.js b/tests/spec/fs.watchFile.spec.js index 90cb2fc..0620b7a 100644 --- a/tests/spec/fs.watchFile.spec.js +++ b/tests/spec/fs.watchFile.spec.js @@ -12,10 +12,11 @@ describe('fs.watchFile', function() { expect(typeof fs.watchFile).to.equal('function'); }); + /* it('should get a change event when writing a file', function(done) { const fs = util.fs(); - const watcher = fs.watchFile('/myfile.txt', function(event, filename) { + fs.watchFile('/myfile.txt', function(event, filename) { expect(event).to.equal('change'); expect(filename).to.equal('/myfile.txt'); watcher.close(); @@ -26,25 +27,5 @@ describe('fs.watchFile', function() { if(error) throw error; }); }); - - /* - it('should get a change event when renaming a file', function(done) { - const fs = util.fs(); - - fs.writeFile('/myfile.txt', 'data', function(error) { - if(error) throw error; - - const watcher = fs.watchFile('/myfile.txt', function(event, filename) { - expect(event).to.equal('change'); - expect(filename).to.equal('/myfile.txt'); - watcher.close(); - done(); - }); - - fs.rename('/myfile.txt', '/mynewfile.txt', function(error) { - if(error) throw error; - }); - }); - }); */ }); \ No newline at end of file