Fix lint issues in #521

This commit is contained in:
David Humphrey 2018-12-14 22:17:15 -05:00
parent 783e7a9e67
commit 83bd64fd58
1 changed files with 11 additions and 9 deletions

View File

@ -152,6 +152,7 @@ describe('fs.promises.rmdir', function(){
});
});
});
describe('fsPromises.rmdir', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
@ -160,18 +161,19 @@ describe('fsPromises.rmdir', function() {
var fs = util.fs().promises;
return fs.rmdir('/tmp/mydir')
.catch(error => {
expect(error).to.exist;
expect(error.code).to.equal('ENOENT');
});
.catch(error => {
expect(error).to.exist;
expect(error.code).to.equal('ENOENT');
});
});
it('should return an error if attempting to remove the root directory', function(){
it('should return an error if attempting to remove the root directory', function() {
var fs = util.fs().promises;
return fs.rmdir('/')
.catch(error => {
expect(error).to.exist;
expect(error.code).to.equal('EBUSY');
});
.catch(error => {
expect(error).to.exist;
expect(error.code).to.equal('EBUSY');
});
});
});