From a8e373e4b969296c9461318097ab9ac4d90f4915 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Fri, 27 Jul 2018 10:39:34 -0400 Subject: [PATCH] Fix lint issues in fs.mknod.spec.js --- tests/spec/fs.mknod.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/spec/fs.mknod.spec.js b/tests/spec/fs.mknod.spec.js index 68ddd4c..58391e3 100644 --- a/tests/spec/fs.mknod.spec.js +++ b/tests/spec/fs.mknod.spec.js @@ -32,9 +32,10 @@ describe('fs.mknod', function() { it('should return an error if the parent node is not a directory', function(done) { var fs = util.fs(); - fs.mknod('/file', 'FILE' , function(error, result) { + fs.mknod('/file', 'FILE' , function(error) { if(error) throw error; - fs.mknod('/file/myfile', 'FILE', function(error, result) { + + fs.mknod('/file/myfile', 'FILE', function(error) { expect(error.code).to.equal('ENOTDIR'); done(); }); @@ -68,8 +69,9 @@ describe('fs.mknod', function() { it('should make a new file', function(done) { var fs = util.fs(); - fs.mknod('/file', 'FILE' , function(error, result) { + fs.mknod('/file', 'FILE' , function(error) { if(error) throw error; + fs.stat('/file', function(error, result) { expect(error).not.to.exist; expect(result.type).to.equal('FILE');