Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6411fe2

Browse filesBrowse files
addaleaxgibfahn
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 <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent eb7285d commit 6411fe2
Copy full SHA for 6411fe2

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-repl-tab-complete.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.