From 86e57d60dba40cc4325f7c6c06c22af9a5665716 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Fri, 27 Jul 2018 10:38:44 -0400 Subject: [PATCH] Fix lint issues in fs.open.spec.js --- tests/spec/fs.open.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/fs.open.spec.js b/tests/spec/fs.open.spec.js index 5ee7150..b995755 100644 --- a/tests/spec/fs.open.spec.js +++ b/tests/spec/fs.open.spec.js @@ -83,7 +83,6 @@ describe('fs.open', function() { it('should return the argument value of the file descriptor index matching the value set by the first useable file descriptor constant', function(done) { var fs = util.fs(); var firstFD = constants.FIRST_DESCRIPTOR; - var fd1; fs.open('/file1', 'w+', function(error, fd) { if(error) throw error; @@ -95,8 +94,9 @@ describe('fs.open', function() { it('should create a new file when flagged for write', function(done) { var fs = util.fs(); - fs.open('/myfile', 'w', function(error, result) { + fs.open('/myfile', 'w', function(error) { if(error) throw error; + fs.stat('/myfile', function(error, result) { expect(error).not.to.exist; expect(result).to.exist;