Skip to content

Commit 94abefb

Browse files
kt3kMylesBorins
authored andcommitted
test: add test of stream Transform
Add a test case of Transform constructor without new. PR-URL: #17303 Reviewed-By: Ron Korving <[email protected]> Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 4fafeae commit 94abefb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parallel/test-stream2-transform.js

+7
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ const Transform = require('_stream_transform');
9696
assert(pt instanceof PassThrough);
9797
}
9898

99+
{
100+
// Verify transform constructor behavior
101+
const pt = Transform();
102+
103+
assert(pt instanceof Transform);
104+
}
105+
99106
{
100107
// Perform a simple transform
101108
const pt = new Transform();

0 commit comments

Comments
 (0)