diff --git a/test/pseudo-tty/stdin-setrawmode.js b/test/pseudo-tty/stdin-setrawmode.js new file mode 100644 index 00000000000000..015c769a9b6144 --- /dev/null +++ b/test/pseudo-tty/stdin-setrawmode.js @@ -0,0 +1,9 @@ +'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);