mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
3ae0900142
adds a basic test for process.stdin.setRawMode to ensure that the isRaw property is properly changed PR-URL: https://github.com/nodejs/node/pull/10037 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
process.stdin.setRawMode(true);
|
|
assert.strictEqual(process.stdin.isRaw, true);
|
|
|
|
process.stdin.setRawMode(false);
|
|
assert.strictEqual(process.stdin.isRaw, false);
|