Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f19eab2

Browse filesBrowse files
kt3kgibfahn
authored andcommitted
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>
1 parent 1fab8fa commit f19eab2
Copy full SHA for f19eab2

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-stream2-transform.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-stream2-transform.js
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ const Transform = require('_stream_transform');
9696
assert(pt instanceof PassThrough);
9797
}
9898

99+
{
100+
// Verify transform constructor behavior
101+
const pt = Transform();
102+
103+
assert(pt instanceof Transform);
104+
}
105+
99106
{
100107
// Perform a simple transform
101108
const pt = new Transform();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.