diff options
author | Anto Aravinth <anto.aravinth.cse@gmail.com> | 2018-11-01 22:16:01 +0530 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-02 13:56:33 -0700 |
commit | dd7a3d246ded89cd0c910231c9adec279e72f9a9 (patch) | |
tree | 1174e1180ef43e9b7a40ca16d270fd2464f9aafa /test | |
parent | 65fe999ed77c958468ca55c24e9242e193b55f95 (diff) | |
download | android-node-v8-dd7a3d246ded89cd0c910231c9adec279e72f9a9.tar.gz android-node-v8-dd7a3d246ded89cd0c910231c9adec279e72f9a9.tar.bz2 android-node-v8-dd7a3d246ded89cd0c910231c9adec279e72f9a9.zip |
lib: repl multiline history support
PR-URL: https://github.com/nodejs/node/pull/22153
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-repl-persistent-history.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parallel/test-repl-persistent-history.js b/test/parallel/test-repl-persistent-history.js index bb10085ecc..32bab3c8ed 100644 --- a/test/parallel/test-repl-persistent-history.js +++ b/test/parallel/test-repl-persistent-history.js @@ -111,6 +111,13 @@ const tests = [ test: [UP], expected: [prompt, replFailedRead, prompt, replDisabled, prompt] }, + { // Tests multiline history + env: {}, + test: ['{', '}', UP, CLEAR], + expected: [prompt, '{', '... ', '}', '{}\n', + prompt, `${prompt}{}`, prompt], + clean: false + }, { before: function before() { if (common.isWindows) { |