Fix #445 test cases for fs.unwatchFile

This commit is contained in:
Vince 2018-09-23 19:51:21 -04:00 committed by David Humphrey
parent 9a7d3514d8
commit fb76c0ec1e
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
var util = require('../lib/test-utils.js');
var expect = require('chai').expect;
describe('fs.unwatchFile', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
it('should be a function', function() {
var fs = util.fs();
expect(typeof fs.unwatchFile).to.equal('function');
});
it('should not throw an error when using a file not being watched', function() {
var fs = util.fs();
fs.unwatchFile('/myfile', function(error){
expect(error).not.to.exist;
});
});
});