Fix lint issues in fs.truncate.spec.js

This commit is contained in:
David Humphrey 2018-07-26 18:07:50 -04:00
parent bb8743eda1
commit 7258a2913e
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ describe('fs.truncate', function() {
var fd = result;
fs.write(fd, buffer, 0, buffer.length, 0, function(error, result) {
if(error) throw error;
expect(result).to.equal(buffer.length);
fs.close(fd, function(error) {
if(error) throw error;
@ -76,6 +77,7 @@ describe('fs.truncate', function() {
var fd = result;
fs.write(fd, buffer, 0, buffer.length, 0, function(error, result) {
if(error) throw error;
expect(result).to.equal(buffer.length);
fs.close(fd, function(error) {
if(error) throw error;
@ -105,6 +107,7 @@ describe('fs.truncate', function() {
var fd = result;
fs.write(fd, buffer, 0, buffer.length, 0, function(error, result) {
if(error) throw error;
expect(result).to.equal(buffer.length);
fs.close(fd, function(error) {
if(error) throw error;
@ -134,6 +137,7 @@ describe('fs.truncate', function() {
var fd = result;
fs.write(fd, buffer, 0, buffer.length, 0, function(error, result) {
if(error) throw error;
expect(result).to.equal(buffer.length);
fs.ftruncate(fd, 0, function(error) {
expect(error).not.to.exist;
@ -159,6 +163,7 @@ describe('fs.truncate', function() {
var fd = result;
fs.write(fd, buffer, 0, buffer.length, 0, function(error, result) {
if(error) throw error;
expect(result).to.equal(buffer.length);
fs.close(fd, function(error) {
if(error) throw error;