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;