2018-09-23 23:51:21 +00:00
|
|
|
var util = require('../lib/test-utils.js');
|
|
|
|
var expect = require('chai').expect;
|
|
|
|
|
2018-10-11 01:44:05 +00:00
|
|
|
// 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();
|
2018-10-11 01:44:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
});
|
|
|
|
});
|