From a524744b1c6848f121dee02616647f7ba9640410 Mon Sep 17 00:00:00 2001 From: Thomas Nolte Date: Mon, 24 Sep 2018 15:48:01 -0400 Subject: [PATCH] update to pass lint tests --- tests/spec/fs.chown.spec.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/spec/fs.chown.spec.js b/tests/spec/fs.chown.spec.js index 017f77d..26ae1d4 100644 --- a/tests/spec/fs.chown.spec.js +++ b/tests/spec/fs.chown.spec.js @@ -69,8 +69,8 @@ describe('fs.promises.chown', function(){ afterEach(util.setup); it('should be a function', function(){ - var fs= util.fs(); - expect(fs.promises.chown).to.be.a('function'); + var fs= util.fs(); + expect(fs.promises.chown).to.be.a('function'); }); it('should allow updating uid and gid for a file', function(done) { @@ -91,22 +91,22 @@ describe('fs.promises.chown', function(){ if(err) throw err; return fs.promises.chown('/file', 500, 500) - .then(()=>{ - fs.stat('/file', function(err, stats){ - if(err) throw err; + .then(()=>{ + fs.stat('/file', function(err, stats){ + if(err) throw err; - expect(stats.uid).to.equal(500); - expect(stats.gid).to.equal(500); + expect(stats.uid).to.equal(500); + expect(stats.gid).to.equal(500); - done(); + done(); + }); + }) + .catch((err)=>{ + throw(err); }); - }) - .catch((err)=>{ - throw(err) - }); }); }); - }) + }); }); }); });