issue 410 added test for fs.rename() file or directory that doesnt exist
This commit is contained in:
parent
fd3de6be2c
commit
f2ff999f8a
File diff suppressed because it is too large
Load Diff
|
@ -69,6 +69,16 @@ describe('fs.rename', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
//337
|
||||||
|
it('should error if the file or directory to rename doesnt exist', function(done) {
|
||||||
|
var fs = util.fs();
|
||||||
|
|
||||||
|
fs.rename('/fakeDirectory', '/myotherdir', function(error) {
|
||||||
|
expect(error).to.exist;
|
||||||
|
done();
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('should rename an existing directory if the new path points to an existing directory', function(done) {
|
it('should rename an existing directory if the new path points to an existing directory', function(done) {
|
||||||
var fs = util.fs();
|
var fs = util.fs();
|
||||||
|
|
Loading…
Reference in New Issue