Skip to content

Commit

Permalink
test: add test of stream Transform
Browse files Browse the repository at this point in the history
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 targos committed Nov 26, 2017
1 parent 1b9915f commit 9de15de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parallel/test-stream2-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,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();
Expand Down

0 comments on commit 9de15de

Please sign in to comment.