aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-load-multiline.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-07-09 13:36:57 +0200
committerRich Trott <rtrott@gmail.com>2019-07-17 20:57:51 -0700
commit6874aa1fb15e815bacf0b0f7e18a434d72de0b4d (patch)
tree7bc996693f1e391919eebfb3da18d244c864dde7 /test/parallel/test-repl-load-multiline.js
parentf9388580bd4169a7e3e3d049ca86a7b1e614ee55 (diff)
downloadandroid-node-v8-6874aa1fb15e815bacf0b0f7e18a434d72de0b4d.tar.gz
android-node-v8-6874aa1fb15e815bacf0b0f7e18a434d72de0b4d.tar.bz2
android-node-v8-6874aa1fb15e815bacf0b0f7e18a434d72de0b4d.zip
repl: fix autocomplete while using .load
This makes sure that complete functions work as expected after using the REPL's `.load` command. It also fixes the corresponding test. So far the assertion where swallowed and the test passed even though it should not have. Fixes: https://github.com/nodejs/node/issues/28546 PR-URL: https://github.com/nodejs/node/pull/28608 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-load-multiline.js')
-rw-r--r--test/parallel/test-repl-load-multiline.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parallel/test-repl-load-multiline.js b/test/parallel/test-repl-load-multiline.js
index 87b866c01b..b2bee8d6e4 100644
--- a/test/parallel/test-repl-load-multiline.js
+++ b/test/parallel/test-repl-load-multiline.js
@@ -13,6 +13,7 @@ const expected = `${command}
const getLunch = () =>
placeOrder('tacos')
.then(eat);
+
const placeOrder = (order) => Promise.resolve(order);
const eat = (food) => '<nom nom nom>';