Update fs.symlink.spec.js

This commit is contained in:
Adam 2018-09-29 01:46:52 -04:00 committed by David Humphrey
parent db237e617b
commit 7e941bb304
1 changed files with 14 additions and 14 deletions

View File

@ -52,6 +52,7 @@ describe('fs.symlink', function() {
expect(error).to.exist;
expect(error.code).to.equal('ENOENT');
});
});
it('should return an error if source path does not exist', function () {
var fsPromises = util.fs().promises;
@ -62,7 +63,6 @@ describe('fs.symlink', function() {
});
});
it('Promise should create a symlink of type DIRECTORY when directory provided', function () {
var fsPromises = util.fs().promises;
return fsPromises.symlink('/', '/myDirLink')
@ -107,9 +107,9 @@ describe('fs.symlink', function() {
expect(error.code).to.equal('EEXIST');
});
});
});
});
});
describe('fsPromises.symlink', function () {