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
Prev Previous commit
Next Next commit
test: es6 update, replace throw with common.fail
Replaced anonymous functions with arrow functions.
Replaced throw new Error with common.fail.
  • Loading branch information
itsmed committed Jan 18, 2017
commit 9464b1d6f886b9df7c22cb52d3ba8016f4c483d7
3 changes: 2 additions & 1 deletion test/parallel/test-fs-empty-readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fs.open(emptyFile, 'r', common.mustCall((error, fd) => {

assert.ifError(error);

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

read.once('data', () => {
common.fail('data event should not emit');
Expand All @@ -24,6 +24,7 @@ fs.open(emptyFile, 'r', common.mustCall((error, fd) => {
assert.ifError(error);

const read = fs.createReadStream(emptyFile, { fd });

read.pause();

read.once('data', () => {
Expand Down