diff --git a/tests/index.js b/tests/index.js index 4d26f73..f864a3d 100644 --- a/tests/index.js +++ b/tests/index.js @@ -42,6 +42,7 @@ require('./spec/trailing-slashes.spec'); require('./spec/times.spec'); require('./spec/time-flags.spec'); require('./spec/fs.watch.spec'); +require('./spec/fs.unwatchFile.spec'); require('./spec/errors.spec'); require('./spec/fs.shell.spec'); require('./spec/fs.chmod.spec'); diff --git a/tests/spec/fs.unwatchFile.spec.js b/tests/spec/fs.unwatchFile.spec.js index 6972ff6..817909e 100644 --- a/tests/spec/fs.unwatchFile.spec.js +++ b/tests/spec/fs.unwatchFile.spec.js @@ -1,7 +1,8 @@ var util = require('../lib/test-utils.js'); var expect = require('chai').expect; -describe('fs.unwatchFile', function() { +// Waiting on https://github.com/filerjs/filer/pull/553 to land +describe.skip('fs.unwatchFile', function() { beforeEach(util.setup); afterEach(util.cleanup); @@ -12,8 +13,11 @@ describe('fs.unwatchFile', 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; - }); + + try { + fs.unwatchFile('/myfile'); + } catch(e) { + expect.fail('calling fs.unwatchFile() on a file should not throw'); + } }); });