issue 410 added test for fs.rename() file or directory that doesnt exist

This commit is contained in:
azou1 2018-09-19 17:08:48 -04:00
parent fd3de6be2c
commit f2ff999f8a
2 changed files with 1486 additions and 1476 deletions

2952
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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) {
var fs = util.fs();