Fix lint issues in fs.close.spec.js, fs.link.spec.js

This commit is contained in:
David Humphrey 2018-07-27 11:00:48 -04:00
parent 9e08d96c96
commit 1a738dd2bb
2 changed files with 8 additions and 1 deletions

View File

@ -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();
});
});

View File

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