MCPcopy Index your code
hub / github.com/nodejs/node / testComp

Function testComp

deps/npm/test/lib/commands/access.js:11–14  ·  view source on GitHub ↗
(argv, expect)

Source from the content-addressed store, hash-verified

9t.test('completion', async t => {
10 const { access } = await loadMockNpm(t, { command: 'access' })
11 const testComp = (argv, expect) => {
12 const res = access.completion({ conf: { argv: { remain: argv } } })
13 t.resolves(res, expect, argv.join(' '))
14 }
15
16 testComp(['npm', 'access'], ['list', 'get', 'set', 'grant', 'revoke'])
17 testComp(['npm', 'access', 'list'], ['packages', 'collaborators'])

Callers 1

access.jsFile · 0.70

Calls 2

completionMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected