diff --git a/tests/spec/fs.stats.spec.js b/tests/spec/fs.stats.spec.js index eb53241..6552cea 100644 --- a/tests/spec/fs.stats.spec.js +++ b/tests/spec/fs.stats.spec.js @@ -45,6 +45,8 @@ describe('fs.stats', function() { if(error) throw error; fs.close(fd, function(error, stats) { if(error) throw error; + expect(stats).to.exist; + fs.symlink('/myfile', '/myfilelink', function(error) { if(error) throw error; fs.lstat('/myfilelink', function(error, stats) { @@ -97,7 +99,7 @@ describe('fs.stats', function() { fs.open('/myfile', 'w+', function(error, fd) { if(error) throw error; - fs.close(fd, function(error, stats) { + fs.close(fd, function(error) { if(error) throw error; fs.symlink('/myfile', '/myfilelink', function(error) { if(error) throw error; @@ -197,7 +199,7 @@ describe('fs.stats', function() { fs.open('/myfile', 'w+', function(error, fd) { if(error) throw error; - fs.close(fd, function(error, stats) { + fs.close(fd, function(error) { if(error) throw error; fs.symlink('/myfile', '/myfilelink', function(error) { if(error) throw error;