Skip to content

Commit 02bea99

Browse files
addaleaxmcollina
authored andcommitted
test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular ending the stream, works. PR-URL: nodejs/node#23053 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 93d10bc commit 02bea99

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/pseudo-tty/test-stdin-write.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
require('../common');
3+
process.stdin.end('foobar\n');

test/pseudo-tty/test-stdin-write.out

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
foobar

0 commit comments

Comments
 (0)