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:
Anna Henningsen
2017-11-16 21:18:30 +01:00
committed by Gibson Fahnestock
parent 2e1e166139
commit af4d74e6d0

View File

@@ -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']);