Permalink
Browse files

test: add test of stream Transform

Add a test case of Transform constructor without new.

PR-URL: #17303
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information...
kt3k authored and gibfahn committed Nov 26, 2017
1 parent 75ad37c commit bdbcdebb65447c464e1e06dc733111008b3750a5
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/parallel/test-stream2-transform.js
@@ -75,6 +75,13 @@ const Transform = require('_stream_transform');
assert(pt instanceof PassThrough);
}
{
// Verify transform constructor behavior
const pt = Transform();
assert(pt instanceof Transform);
}
{
// Perform a simple transform
const pt = new Transform();

0 comments on commit bdbcdeb

Please sign in to comment.