Added Test for CHMODE

This commit is contained in:
rhayes2 2018-09-24 14:16:16 -04:00
parent 499c72daaf
commit 546b4567d2
1 changed files with 14 additions and 0 deletions

View File

@ -39,6 +39,20 @@ describe('fs.chmod, fs.fchmod', function() {
});
});
it('Should be a valid mode value to set permissions', function(done){
var fs = util.fs();
fs.mkdir('/file',function(err, ed) {
if(err) throw err;
fs.chmod(ed, 1000, function(err) {
expect(err).to.exist;
expect(err.code).to.equal('EINVAL');
done();
});
});
});
it('should allow for updating mode of a given file', function(done) {
var fs = util.fs();