Permalink
Browse files

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: #17082
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information...
addaleax authored and MylesBorins committed Nov 16, 2017
1 parent a12e168 commit 92daa2d2d3ea358c26e0c730c5054f61574afb7d
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-repl-tab-complete.js
@@ -373,8 +373,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']);

0 comments on commit 92daa2d

Please sign in to comment.