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

24 lines
632 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;
// Waiting on https://github.com/filerjs/filer/pull/553 to land
describe.skip('fs.unwatchFile', function() {
2018-09-23 23:51:21 +00:00
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();
try {
fs.unwatchFile('/myfile');
} catch(e) {
expect.fail('calling fs.unwatchFile() on a file should not throw');
}
2018-09-23 23:51:21 +00:00
});
});