removed outddated test methods

This commit is contained in:
Andrew Koung 2019-03-25 00:07:15 -04:00
parent 1c7c00142e
commit 3fd3fb0c6d
1 changed files with 2 additions and 21 deletions

View File

@ -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;
});
});
});
*/
});