Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactored to es6
Changed var to const, assert.equal to assert.strictEqual
  • Loading branch information
itsmed committed Jan 18, 2017
commit c701c1311e3c01244bd9500947e954103e89f079
2 changes: 2 additions & 0 deletions test/parallel/test-fs-empty-readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const fs = require('fs');
const emptyFile = path.join(common.fixturesDir, 'empty.txt');

fs.open(emptyFile, 'r', common.mustCall((error, fd) => {

assert.ifError(error);

const read = fs.createReadStream(emptyFile, { 'fd': fd });
Expand All @@ -19,6 +20,7 @@ fs.open(emptyFile, 'r', common.mustCall((error, fd) => {
}));

fs.open(emptyFile, 'r', common.mustCall((error, fd) => {

assert.ifError(error);

const read = fs.createReadStream(emptyFile, { 'fd': fd });
Expand Down