issue 410 test fs.rename() errors if directory or file to rename doesnt exist
This commit is contained in:
parent
f2ff999f8a
commit
8aa9140112
|
@ -62,14 +62,13 @@ describe('fs.rename', function() {
|
||||||
|
|
||||||
fs.stat('/myotherdir', function(error, result) {
|
fs.stat('/myotherdir', function(error, result) {
|
||||||
expect(error).not.to.exist;
|
expect(error).not.to.exist;
|
||||||
expect(result.nlinks).to.equal(1);
|
expect(result.nlinks).to.equal(1)g;
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//337
|
|
||||||
it('should error if the file or directory to rename doesnt exist', function(done) {
|
it('should error if the file or directory to rename doesnt exist', function(done) {
|
||||||
var fs = util.fs();
|
var fs = util.fs();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue