node/test/pseudo-tty/test-stdin-write.js
Anna Henningsen 8bf48bf2cf
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-04 09:20:25 -07:00

4 lines
67 B
JavaScript

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