Skip to content

Commit

Permalink
fixup! stream: Duplex forward writableObjectMode
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed May 17, 2020
1 parent 3326255 commit de35e4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-stream-duplex-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ const assert = require('assert');
const { Duplex } = require('stream');

{
const d = new Duplex({
const d = new Duplex({
objectMode: true,
highWaterMark: 100
});

assert.strictEqual(d.writableObjectMode, true);
assert.strictEqual(d.writableHighWaterMark, 100);
assert.strictEqual(d.readableObjectMode, true);
assert.strictEqual(d.readableHighWaterMark, 100);
}

{
Expand Down

0 comments on commit de35e4f

Please sign in to comment.