issue-410 test fs.rename() errors when file/directory to rename doesnt exist
This commit is contained in:
parent
50ece50504
commit
498e76cf9d
|
@ -71,11 +71,9 @@ describe('fs.rename', function() {
|
||||||
});
|
});
|
||||||
it('should return error if the file or directory to rename doesnt exist', function(done) {
|
it('should return error if the file or directory to rename doesnt exist', function(done) {
|
||||||
var fs = util.fs();
|
var fs = util.fs();
|
||||||
|
|
||||||
fs.rename('/fakeDirectory', '/myotherdir', function(error) {
|
fs.rename('/fakeDirectory', '/myotherdir', function(error) {
|
||||||
expect(error).to.exist;
|
expect(error).to.exist;
|
||||||
done();
|
done();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue