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:
Anna Henningsen 2018-09-24 12:08:46 +02:00
parent cbc3ef64ce
commit 8bf48bf2cf
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,3 @@
'use strict';
require('../common');
process.stdin.end('foobar\n');

View File

@ -0,0 +1 @@
foobar