diff --git a/tests/spec/fs.chmod.spec.js b/tests/spec/fs.chmod.spec.js index 090d98b..40050ce 100644 --- a/tests/spec/fs.chmod.spec.js +++ b/tests/spec/fs.chmod.spec.js @@ -39,6 +39,16 @@ describe('fs.chmod, fs.fchmod', function() { }); }); + it('should be an error when the path is invalid', function(done){ + var fs = util.fs(); + fs.chmod('/invalid_path', 0o444, function(err){ + expect(err).to.exist; + expect(err.code).to.equal('ENOENT'); + done(); + }); + + }); + it('should allow for updating mode of a given file', function(done) { var fs = util.fs();