filer/tests/spec/fs.unwatchFile.spec.js

20 lines
511 B
JavaScript
Raw Normal View History

2018-09-23 23:51:21 +00:00
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;
});
});
});