mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 file changed
+2
-2
@@ -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']);
|
||||
|
||||
Reference in new issue
Block a user