Fixed Issue #483 for a test done for fs.mknod promise (#509)

* test done for fs.mknod promise

* fixing whitespaces
This commit is contained in:
Nick Skuybeda 2018-10-09 12:43:45 -04:00 committed by David Humphrey
parent a8759b1e38
commit 86b6b2a907
1 changed files with 32 additions and 21 deletions

View File

@ -79,4 +79,15 @@ describe('fs.mknod', function() {
}); });
}); });
}); });
describe('Promise test mknod', function(){
it('should return an error if part of the parent path does not exist', function(){
var fs = util.fs().promises;
return fs.mknod('/dir/mydir', 'DIRECTORY')
.catch(error => {
expect(error.code).to.equal('ENOENT');
});
});
});
}); });