Skip to content

Commit

Permalink
test: use duplex streams in duplex stream test
Browse files Browse the repository at this point in the history
test-stream-duplex.js uses transform streams instead of the
duplex stream base class. This leads to some code not being
covered in the Duplex constructor.

PR-URL: #12514
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: David Cai <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
cjihrig authored and DavidCai1111 committed Apr 21, 2017
1 parent 4bcbefc commit c083a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-stream-duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

const common = require('../common');
const assert = require('assert');
const Duplex = require('stream').Transform;
const Duplex = require('stream').Duplex;

const stream = new Duplex({ objectMode: true });

Expand Down

0 comments on commit c083a20

Please sign in to comment.