mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00: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:
committed by
Gibson Fahnestock
parent
2e1e166139
commit
af4d74e6d0
@@ -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