test: add test of stream Transform

Add a test case of Transform constructor without new.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Yoshiya Hinosawa authored and Gibson Fahnestock committed 2017-12-20 01:59:20 +00:00
1 parent 39107d7a79
commit 0aca036e91
1 file changed
+7
+7
View File
@@ -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();