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

Function testComp

deps/npm/test/lib/commands/profile.js:1119–1122  ·  view source on GitHub ↗
(t, { argv, expect, title } = {})

Source from the content-addressed store, hash-verified

1117
1118t.test('completion', async t => {
1119 const testComp = async (t, { argv, expect, title } = {}) => {
1120 const { profile } = await mockProfile(t)
1121 t.resolveMatch(profile.completion({ conf: { argv: { remain: argv } } }), expect, title)
1122 }
1123
1124 t.test('npm profile autocomplete', async t => {
1125 await testComp(t, {

Callers 1

profile.jsFile · 0.70

Calls 2

mockProfileFunction · 0.85
completionMethod · 0.45

Tested by

no test coverage detected