diff options
author | cjihrig <cjihrig@gmail.com> | 2017-04-19 12:08:05 -0400 |
---|---|---|
committer | David Cai <davidcai1993@yahoo.com> | 2017-04-21 22:17:17 +0800 |
commit | c083a200b07f998649b52d80ff653219a691d0e2 (patch) | |
tree | fd4e9a0dbcf570a86098b08c256b9600fceec850 /test/parallel/test-stream-duplex.js | |
parent | 4bcbefccce50f323ab458b358922736fbc48c2d0 (diff) | |
download | node-new-c083a200b07f998649b52d80ff653219a691d0e2.tar.gz |
test: use duplex streams in duplex stream test
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-stream-duplex.js')
-rw-r--r-- | test/parallel/test-stream-duplex.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-stream-duplex.js b/test/parallel/test-stream-duplex.js index 5a686a6aba..f0c8a47a50 100644 --- a/test/parallel/test-stream-duplex.js +++ b/test/parallel/test-stream-duplex.js @@ -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 }); |