0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/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');