Skip to content

Commit

Permalink
test: add stdin writable regression test
Browse files Browse the repository at this point in the history
Make sure that `process.stdin.write()`, and in particular
ending the stream, works.

PR-URL: #23053
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
addaleax authored and targos committed Oct 7, 2018
1 parent 5a30674 commit cb68188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/pseudo-tty/test-stdin-write.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';
require('../common');
process.stdin.end('foobar\n');
1 change: 1 addition & 0 deletions test/pseudo-tty/test-stdin-write.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foobar

0 comments on commit cb68188

Please sign in to comment.