MCPcopy Create free account
hub / github.com/nodejs/node / testComp

Function testComp

deps/npm/test/lib/commands/version.js:55–58  ·  view source on GitHub ↗
(argv, expect)

Source from the content-addressed store, hash-verified

53 t.test('completion', async t => {
54 const { version } = await mockNpm(t)
55 const testComp = async (argv, expect) => {
56 const res = await version.completion({ conf: { argv: { remain: argv } } })
57 t.strictSame(res, expect, argv.join(' '))
58 }
59
60 await testComp(
61 ['npm', 'version'],

Callers 1

version.jsFile · 0.70

Calls 2

completionMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected