Lines Matching refs:outputs
75 const { npm, hook, outputs, hookArgs } = await mockHook(t)
88 t.strictSame(outputs[0], ['+ semver -> https://google.com'], 'prints the correct output')
92 const { npm, hook, outputs, hookArgs } = await mockHook(t)
105 t.strictSame(outputs[0], ['+ ~npm -> https://google.com'], 'prints the correct output')
109 const { npm, hook, outputs, hookArgs } = await mockHook(t)
122 t.strictSame(outputs[0], ['+ @npmcli -> https://google.com'], 'prints the correct output')
129 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
145 t.strictSame(outputs[0], ['+ semver ➜ https://google.com'], 'prints the correct output')
152 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
169 JSON.parse(outputs[0][0]),
184 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
202 outputs[0][0].split(/\t/),
207 outputs[1][0].split(/\t/),
215 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
231 t.strictSame(outputs, [], 'printed no output')
235 const { npm, hook, outputs, hookArgs } = await mockHook(t)
246 t.equal(outputs[0][0], 'You have 3 hooks configured.', 'prints the correct header')
247 const out = stripVTControlCharacters(outputs[1][0])
255 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
269 t.equal(outputs[0][0], "You don't have any hooks configured yet.", 'prints the correct result')
281 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
295 t.equal(outputs[0][0], 'You have one hook configured.', 'prints the correct header')
296 const out = stripVTControlCharacters(outputs[1][0])
304 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
318 const out = JSON.parse(outputs[0])
349 const { npm, hook, outputs, hookArgs, now } = await mockHook(t, {
364 outputs.map(line => line[0].split(/\t/)),
377 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
391 t.strictSame(outputs, [], 'printed no output')
395 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
407 t.strictSame(outputs[0], ['- semver X https://google.com'], 'printed the correct output')
414 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
428 t.strictSame(outputs[0], ['- semver ✘ https://google.com'], 'printed the correct output')
433 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
447 t.strictSame(outputs, [], 'printed no output')
454 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
469 JSON.parse(outputs[0]),
484 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
499 outputs.map(line => line[0].split(/\t/)),
509 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
523 t.strictSame(outputs[0], ['+ semver -> https://google.com'], 'printed the correct output')
530 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
546 t.strictSame(outputs[0], ['+ semver ➜ https://google.com'], 'printed the correct output')
553 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
570 JSON.parse(outputs[0]),
585 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
602 outputs.map(line => line[0].split(/\t/)),
613 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
629 t.strictSame(outputs, [], 'printed no output')