Skip to content

Commit 03b0bf3

Browse files
cjihrigevanlucas
authored andcommitted
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: #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]>
1 parent 659bffc commit 03b0bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-stream-duplex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
require('../common');
33
const assert = require('assert');
4-
const Duplex = require('stream').Transform;
4+
const Duplex = require('stream').Duplex;
55

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

0 commit comments

Comments
 (0)