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
test: use shorthand properties in stream2 tests
  • Loading branch information
tniessen committed Jan 11, 2018
commit 5f7a0b13070a155bcac9dc998a7700698cc2f1c6
5 changes: 2 additions & 3 deletions test/parallel/test-stream2-readable-wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ const EE = require('events').EventEmitter;
function runTest(highWaterMark, objectMode, produce) {

const old = new EE();
const r = new Readable({ highWaterMark: highWaterMark,
objectMode: objectMode });
const r = new Readable({ highWaterMark, objectMode });
assert.strictEqual(r, r.wrap(old));

r.on('end', common.mustCall());
Expand Down Expand Up @@ -63,7 +62,7 @@ function runTest(highWaterMark, objectMode, produce) {
}

const w = new Writable({ highWaterMark: highWaterMark * 2,
objectMode: objectMode });
objectMode });
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the second exception to the described rule, again, feel free to request changes here.

const written = [];
w._write = function(chunk, encoding, cb) {
written.push(chunk);
Expand Down