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: nodejs#23053
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
addaleax committed Oct 4, 2018
1 parent cbc3ef6 commit 8bf48bf
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 8bf48bf

Please sign in to comment.