Skip to content

Commit cb68188

Browse files
addaleaxtargos
authored andcommittedOct 7, 2018
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 5a30674 commit cb68188

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)
Please sign in to comment.