We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73e190 commit 08d1611Copy full SHA for 08d1611
1 file changed
test/test_process.js
@@ -67,17 +67,15 @@ class TestProcess {
67
68
switch (mode) {
69
case 'readable':
70
- this.duplexFrom = this.childProcess.stdout;
+ this.stream = this.childProcess.stdout;
71
break;
72
case 'writable':
73
- this.duplexFrom = this.childProcess.stdin;
+ this.stream = this.childProcess.stdin;
74
75
default:
76
// Default is duplex
77
- this.duplexFrom = { writable: this.childProcess.stdin, readable: this.childProcess.stdout };
+ this.stream = Duplex.from({ writable: this.childProcess.stdin, readable: this.childProcess.stdout });
78
}
79
-
80
- this.stream = Duplex.from(this.duplexFrom);
81
82
83
0 commit comments