aboutsummaryrefslogtreecommitdiff
path: root/test/pseudo-tty/repl-dumb-tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/pseudo-tty/repl-dumb-tty.js')
-rw-r--r--test/pseudo-tty/repl-dumb-tty.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pseudo-tty/repl-dumb-tty.js b/test/pseudo-tty/repl-dumb-tty.js
new file mode 100644
index 0000000000..08c63881d3
--- /dev/null
+++ b/test/pseudo-tty/repl-dumb-tty.js
@@ -0,0 +1,15 @@
+'use strict';
+require('../common');
+
+process.env.TERM = 'dumb';
+
+const repl = require('repl');
+
+repl.start('> ');
+process.stdin.push('console.log("foo")\n');
+process.stdin.push('1 + 2\n');
+process.stdin.push('"str"\n');
+process.stdin.push('console.dir({ a: 1 })\n');
+process.stdin.push('{ a: 1 }\n');
+process.stdin.push('\n');
+process.stdin.push('.exit\n');