Style fix

This commit is contained in:
rhayes2 2018-09-25 00:15:07 -04:00
parent 546b4567d2
commit 294685d6cb
2 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
], ],
"linebreak-style": [ "linebreak-style": [
"error", "error",
"unix" "windows"
], ],
"quotes": [ "quotes": [
"error", "error",

View File

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