diff --git a/tests/spec/fs.rmdir.spec.js b/tests/spec/fs.rmdir.spec.js index 165f518..3ba33a1 100644 --- a/tests/spec/fs.rmdir.spec.js +++ b/tests/spec/fs.rmdir.spec.js @@ -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'); + }); }); });