summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-11-16 21:18:30 +0100
committerAnna Henningsen <anna@addaleax.net>2017-11-16 22:54:16 +0100
commit61567299e79525e82f4942fb1941e61c633f551f (patch)
tree4187293003e5cf6bfccc8a06467eb19ef6bac7a0
parent886c5f47e19f72a01e123fa037d35818e502aa84 (diff)
downloadandroid-node-v8-61567299e79525e82f4942fb1941e61c633f551f.tar.gz
android-node-v8-61567299e79525e82f4942fb1941e61c633f551f.tar.bz2
android-node-v8-61567299e79525e82f4942fb1941e61c633f551f.zip
test: make REPL test pass in coverage mode
Make a REPL tab completion test pass in coverage mode by using `Uin` as the common prefix of all `Uint*Array` globals instead of `co` which could be a prefix for `console` and `coverage`, so it doesn't expand the way it's expected to in coverage mode. PR-URL: https://github.com/nodejs/node/pull/17082 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r--test/parallel/test-repl-tab-complete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-repl-tab-complete.js b/test/parallel/test-repl-tab-complete.js
index 8dd8046427..4bf6b7209d 100644
--- a/test/parallel/test-repl-tab-complete.js
+++ b/test/parallel/test-repl-tab-complete.js
@@ -519,8 +519,8 @@ const editor = repl.start({
editorStream.run(['.clear']);
editorStream.run(['.editor']);
-editor.completer('co', common.mustCall((error, data) => {
- assert.deepStrictEqual(data, [['con'], 'co']);
+editor.completer('Uin', common.mustCall((error, data) => {
+ assert.deepStrictEqual(data, [['Uint'], 'Uin']);
}));
editorStream.run(['.clear']);