diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-09-24 12:08:46 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-04 09:20:25 -0700 |
commit | 8bf48bf2cf714125fef91fd0651d3517b8953034 (patch) | |
tree | 5f0c9d1b101875b75a1d13927f3a3a014968a42e /test/pseudo-tty | |
parent | cbc3ef64ceaf95ec1d0d1535211ce3a6945407e1 (diff) | |
download | node-new-8bf48bf2cf714125fef91fd0651d3517b8953034.tar.gz |
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>
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r-- | test/pseudo-tty/test-stdin-write.js | 3 | ||||
-rw-r--r-- | test/pseudo-tty/test-stdin-write.out | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-stdin-write.js b/test/pseudo-tty/test-stdin-write.js new file mode 100644 index 0000000000..39091f20bb --- /dev/null +++ b/test/pseudo-tty/test-stdin-write.js @@ -0,0 +1,3 @@ +'use strict'; +require('../common'); +process.stdin.end('foobar\n'); diff --git a/test/pseudo-tty/test-stdin-write.out b/test/pseudo-tty/test-stdin-write.out new file mode 100644 index 0000000000..323fae03f4 --- /dev/null +++ b/test/pseudo-tty/test-stdin-write.out @@ -0,0 +1 @@ +foobar |