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 gibfahn committed Dec 19, 2017
1 parent 75ad37c commit bdbcdeb
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 @@ -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();
Expand Down

0 comments on commit bdbcdeb

Please sign in to comment.