Lines Matching defs:const

0 const t = require('tap')
2 const mockNpm = require('../../fixtures/mock-npm')
4 const mockProfile = async (t, { npmProfile, readUserInfo, qrcode, config, ...opts } = {}) => {
5 const mocks = {
25 const mock = await mockNpm(t, {
44 const userProfile = {
60 const { profile } = await mockProfile(t)
65 const defaultNpmProfile = {
72 const { profile, result } = await mockProfile(t, { npmProfile: defaultNpmProfile })
79 const { profile, result } = await mockProfile(t, {
90 const { profile, result } = await mockProfile(t, {
100 const { profile, result } = await mockProfile(t, {
110 const npmProfile = {
118 const { profile, result } = await mockProfile(t, { npmProfile })
125 const npmProfile = {
134 const { profile, result } = await mockProfile(t, { npmProfile })
142 const npmProfile = {
151 const { profile, result } = await mockProfile(t, { npmProfile })
160 const npmProfile = {
167 const { profile, result } = await mockProfile(t, { npmProfile })
175 const { profile, result } = await mockProfile(t, {
190 const { profile, result } = await mockProfile(t, {
202 const npmProfile = {
209 const { profile, result } = await mockProfile(t, {
218 const config = { json: true }
219 const { profile, result } = await mockProfile(t, {
230 const config = { parseable: true }
231 const { profile, result } = await mockProfile(t, {
242 const { profile, result } = await mockProfile(t, {
254 const { profile } = await mockProfile(t)
264 const { profile } = await mockProfile(t)
273 const { profile } = await mockProfile(t)
282 const { profile } = await mockProfile(t)
290 const defaultNpmProfile = t => ({
313 const { profile, result } = await mockProfile(t, {
324 const config = { json: true }
326 const { profile, result } = await mockProfile(t, {
345 const config = { parseable: true }
346 const { profile, result } = await mockProfile(t, {
360 const npmProfile = {
379 const { profile, result } = await mockProfile(t, {
390 const npmProfile = {
411 const readUserInfo = {
427 const { profile, result } = await mockProfile(t, {
442 const npmProfile = {
451 const readUserInfo = {
468 const { profile, result, logs } = await mockProfile(t, {
487 const { profile } = await mockProfile(t)
496 const { profile } = await mockProfile(t)
505 const config = { json: true }
506 const { profile } = await mockProfile(t, { config })
517 const config = { parseable: true }
518 const { profile } = await mockProfile(t, { config })
531 const npmProfile = {
538 const { npm, profile } = await mockProfile(t, {
559 const npmProfile = {
565 const { npm, profile } = await mockProfile(t, {
585 const { npm, profile } = await mockProfile(t)
599 const npmProfile = {
624 const readUserInfo = {
639 const { npm, profile, result } = await mockProfile(t, {
670 const npmProfile = {
726 const readUserInfo = {
735 const qrcode = {
740 const { npm, profile, result } = await mockProfile(t, {
758 const npmProfile = {
775 const readUserInfo = {
784 const { npm, profile } = await mockProfile(t, {
802 const npmProfile = {
814 const readUserInfo = {
823 const { npm, profile, result } = await mockProfile(t, {
843 const npmProfile = {
858 const readUserInfo = {
867 const { npm, profile, result } = await mockProfile(t, {
886 const npmProfile = {
901 const readUserInfo = {
910 const { npm, profile, result } = await mockProfile(t, {
930 const npmProfile = {
939 const { profile, result } = await mockProfile(t, {
949 const npmProfile = t => ({
967 const readUserInfo = t => ({
985 const { profile, result } = await mockProfile(t, {
997 const config = { json: true }
999 const { profile, result } = await mockProfile(t, {
1013 const config = { parseable: true }
1015 const { profile, result } = await mockProfile(t, {
1030 const npmProfile = {
1048 const readUserInfo = {
1057 const { profile, result } = await mockProfile(t, {
1070 const { profile } = await mockProfile(t)
1080 const testComp = async (t, { argv, expect, title } = {}) => {
1081 const { profile } = await mockProfile(t)
1102 const noAutocompleteCmds = ['disable-2fa', 'disable-tfa', 'get', 'set']
1103 for (const subcmd of noAutocompleteCmds) {
1113 const { profile } = await mockProfile(t)