Update fs.symlink.spec.js
This commit is contained in:
parent
db237e617b
commit
7e941bb304
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue