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 <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: David Cai <davidcai1993@yahoo.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
cjihrig authored and gibfahn committed May 16, 2017
1 parent 16f78f8 commit 57f8f27
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
@@ -1,7 +1,7 @@
'use strict';
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 57f8f27

Please sign in to comment.