mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular ending the stream, works. PR-URL: https://github.com/nodejs/node/pull/23053 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
cbc3ef64ce
commit
8bf48bf2cf
3
test/pseudo-tty/test-stdin-write.js
Normal file
3
test/pseudo-tty/test-stdin-write.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
'use strict';
|
||||||
|
require('../common');
|
||||||
|
process.stdin.end('foobar\n');
|
1
test/pseudo-tty/test-stdin-write.out
Normal file
1
test/pseudo-tty/test-stdin-write.out
Normal file
@ -0,0 +1 @@
|
|||||||
|
foobar
|
Loading…
Reference in New Issue
Block a user