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.

Backport-PR-URL: #25351
PR-URL: #23053
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
addaleax authored and BethGriggs committed Mar 19, 2019
1 parent ea5628e commit c56f3ed
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
@@ -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
@@ -0,0 +1 @@
foobar

0 comments on commit c56f3ed

Please sign in to comment.