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 <[email protected]>
Reviewed-By: Yosuke Furukawa <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
kt3k authored and MylesBorins committed Dec 12, 2017
1 parent 4fafeae commit 94abefb
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 94abefb

Please sign in to comment.