Files
node/test/pseudo-tty/test-stdin-write.js
Anna Henningsen c56f3edb10 test: add stdin writable regression test
Make sure that `process.stdin.write()`, and in particular
ending the stream, works.

Backport-PR-URL: https://github.com/nodejs/node/pull/25351
PR-URL: https://github.com/nodejs/node/pull/23053
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-19 22:55:34 +00:00

4 lines
67 B
JavaScript

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