* test done for fs.mknod promise * fixing whitespaces
This commit is contained in:
parent
a8759b1e38
commit
86b6b2a907
|
@ -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');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue