Skip to content

Commit 8bf48bf

Browse files
committed
test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular ending the stream, works. PR-URL: #23053 Reviewed-By: James M Snell <[email protected]>
1 parent cbc3ef6 commit 8bf48bf

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)