From 1a738dd2bb8ca68562e98f6c8291c0f38b441510 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Fri, 27 Jul 2018 11:00:48 -0400 Subject: [PATCH] Fix lint issues in fs.close.spec.js, fs.link.spec.js --- tests/spec/fs.close.spec.js | 3 +++ tests/spec/fs.link.spec.js | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/spec/fs.close.spec.js b/tests/spec/fs.close.spec.js index aa273ed..b050669 100644 --- a/tests/spec/fs.close.spec.js +++ b/tests/spec/fs.close.spec.js @@ -20,8 +20,11 @@ describe('fs.close', function() { var fd = result; fs.close(fd, function(error) { + if(error) throw error; + fs.read(fd, buffer, 0, buffer.length, undefined, function(error, result) { expect(error).to.exist; + expect(result).not.to.exist; done(); }); }); diff --git a/tests/spec/fs.link.spec.js b/tests/spec/fs.link.spec.js index a9499c4..0466ae4 100644 --- a/tests/spec/fs.link.spec.js +++ b/tests/spec/fs.link.spec.js @@ -70,13 +70,17 @@ describe('fs.link', function() { fs.stat('/', function (error, result) { if (error) throw error; - var _oldstats = result; + expect(result).to.exist; + fs.symlink('/', '/myfileLink', function (error) { if (error) throw error; + fs.link('/myfileLink', '/myotherfile', function (error) { if (error) throw error; + fs.lstat('/myfileLink', function (error, result) { if (error) throw error; + var _linkstats = result; fs.lstat('/myotherfile', function (error, result) { expect(error).not.to.exist;