Skip to content

Commit c56f3ed

Browse files
addaleaxBethGriggs
authored andcommitted
test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular ending the stream, works. Backport-PR-URL: #25351 PR-URL: #23053 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ea5628e commit c56f3ed

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
foobar

0 commit comments

Comments
 (0)