Skip to content

Commit 92daa2d

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 a12e168 commit 92daa2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ const editor = repl.start({
373373
editorStream.run(['.clear']);
374374
editorStream.run(['.editor']);
375375

376-
editor.completer('co', common.mustCall((error, data) => {
377-
assert.deepStrictEqual(data, [['con'], 'co']);
376+
editor.completer('Uin', common.mustCall((error, data) => {
377+
assert.deepStrictEqual(data, [['Uint'], 'Uin']);
378378
}));
379379

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

0 commit comments

Comments
 (0)