From 3fd3fb0c6d5d7c5115009e43ce09aebfe3ca8c1d Mon Sep 17 00:00:00 2001 From: Andrew Koung Date: Mon, 25 Mar 2019 00:07:15 -0400 Subject: [PATCH] removed outddated test methods --- tests/spec/fs.watchFile.spec.js | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) 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