Skip to content

Commit acf6f24

Browse files
addaleaxMylesBorins
authored andcommitted
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 8366a74 commit acf6f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-repl-tab-complete.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ const editor = repl.start({
519519
editorStream.run(['.clear']);
520520
editorStream.run(['.editor']);
521521

522-
editor.completer('co', common.mustCall((error, data) => {
523-
assert.deepStrictEqual(data, [['con'], 'co']);
522+
editor.completer('Uin', common.mustCall((error, data) => {
523+
assert.deepStrictEqual(data, [['Uint'], 'Uin']);
524524
}));
525525

526526
editorStream.run(['.clear']);

0 commit comments

Comments
 (0)