Skip to content

Commit

Permalink
Fix lint issues in #521
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd committed Dec 15, 2018
1 parent 783e7a9 commit 83bd64f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/spec/fs.rmdir.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ describe('fs.promises.rmdir', function(){
});
});
});

describe('fsPromises.rmdir', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
Expand All @@ -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');
});
});
});

0 comments on commit 83bd64f

Please sign in to comment.