node/test/pseudo-tty/test-stdin-write.js
Anna Henningsen cb68188805
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>
2018-10-07 12:11:34 +02:00

4 lines
67 B
JavaScript

'use strict';
require('../common');
process.stdin.end('foobar\n');