diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-21 15:32:08 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-28 05:20:51 +0100 |
commit | ff64c6722f03cb442859bb7f1bfef8a3adf09119 (patch) | |
tree | 5a09beb62ed4dd06366145ad02c03d6c578ff1af /test | |
parent | 8a273f1fd5c26d2a73a548167801e0df42ae5ce7 (diff) | |
download | android-node-v8-ff64c6722f03cb442859bb7f1bfef8a3adf09119.tar.gz android-node-v8-ff64c6722f03cb442859bb7f1bfef8a3adf09119.tar.bz2 android-node-v8-ff64c6722f03cb442859bb7f1bfef8a3adf09119.zip |
repl: add more information
This adds information about how to close the repl.
PR-URL: https://github.com/nodejs/node/pull/26240
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-repl-editor.js | 2 | ||||
-rw-r--r-- | test/parallel/test-repl.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-repl-editor.js b/test/parallel/test-repl-editor.js index 5afbf2540d..dbc59742ac 100644 --- a/test/parallel/test-repl-editor.js +++ b/test/parallel/test-repl-editor.js @@ -45,7 +45,7 @@ function run({ input, output, event, checkTerminalCodes = true }) { const tests = [ { input: '', - output: '\n(To exit, press ^C again or type .exit)', + output: '\n(To exit, press ^C again or ^D or type .exit)', event: { ctrl: true, name: 'c' } }, { diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index a53f4a2833..6e3bca24e2 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -444,6 +444,8 @@ const errorTests = [ /\.help/, /\.load/, /\.save/, + '', + 'Press ^C to abort current expression, ^D to exit the repl', /'thefourtheye'/ ] }, |