Fix lint issues in fs.open.spec.js

This commit is contained in:
David Humphrey 2018-07-27 10:38:44 -04:00
parent 054094c852
commit 86e57d60db
1 changed files with 2 additions and 2 deletions

View File

@ -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;