Lines Matching refs:await

25   const mock = await mockNpm(t, {
60 const { profile } = await mockProfile(t)
61 await t.rejects(profile.exec([]), await profile.usage)
72 const { profile, result } = await mockProfile(t, { npmProfile: defaultNpmProfile })
73 await profile.exec(['get'])
79 const { profile, result } = await mockProfile(t, {
84 await profile.exec(['get'])
90 const { profile, result } = await mockProfile(t, {
95 await profile.exec(['get'])
100 const { profile, result } = await mockProfile(t, {
105 await profile.exec(['get'])
118 const { profile, result } = await mockProfile(t, { npmProfile })
120 await profile.exec(['get'])
134 const { profile, result } = await mockProfile(t, { npmProfile })
136 await profile.exec(['get'])
151 const { profile, result } = await mockProfile(t, { npmProfile })
153 await profile.exec(['get'])
167 const { profile, result } = await mockProfile(t, { npmProfile })
169 await profile.exec(['get', 'name'])
175 const { profile, result } = await mockProfile(t, {
180 await profile.exec(['get', 'name'])
190 const { profile, result } = await mockProfile(t, {
195 await profile.exec(['get', 'name'])
209 const { profile, result } = await mockProfile(t, {
212 await profile.exec(['get', 'name', 'email', 'github'])
219 const { profile, result } = await mockProfile(t, {
224 await profile.exec(['get', 'name', 'email', 'github'])
231 const { profile, result } = await mockProfile(t, {
236 await profile.exec(['get', 'name', 'email', 'github'])
242 const { profile, result } = await mockProfile(t, {
246 await profile.exec(['get', 'name,email,github'])
254 const { profile } = await mockProfile(t)
256 await t.rejects(
264 const { profile } = await mockProfile(t)
265 await t.rejects(
273 const { profile } = await mockProfile(t)
274 await t.rejects(
282 const { profile } = await mockProfile(t)
283 await await t.rejects(
313 const { profile, result } = await mockProfile(t, {
317 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
326 const { profile, result } = await mockProfile(t, {
331 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
346 const { profile, result } = await mockProfile(t, {
351 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
379 const { profile, result } = await mockProfile(t, {
383 await profile.exec(['set', 'email', 'foo@npmjs.com'])
427 const { profile, result } = await mockProfile(t, {
432 await profile.exec(['set', 'password'])
468 const { profile, result, logs } = await mockProfile(t, {
473 await profile.exec(['set', 'password'])
487 const { profile } = await mockProfile(t)
488 await t.rejects(
496 const { profile } = await mockProfile(t)
497 await t.rejects(
506 const { profile } = await mockProfile(t, { config })
508 await t.rejects(
518 const { profile } = await mockProfile(t, { config })
520 await t.rejects(
538 const { npm, profile } = await mockProfile(t, {
549 await t.rejects(
565 const { npm, profile } = await mockProfile(t, {
575 await t.rejects(
585 const { npm, profile } = await mockProfile(t)
590 await t.rejects(
639 const { npm, profile, result } = await mockProfile(t, {
658 await profile.exec(['enable-2fa', 'auth-only'])
740 const { npm, profile, result } = await mockProfile(t, {
752 await profile.exec(['enable-2fa', 'auth-only'])
784 const { npm, profile } = await mockProfile(t, {
794 await t.rejects(
823 const { npm, profile, result } = await mockProfile(t, {
833 await profile.exec(['enable-2fa', 'auth-and-writes'])
867 const { npm, profile, result } = await mockProfile(t, {
876 await profile.exec(['enable-2fa', 'auth-only'])
910 const { npm, profile, result } = await mockProfile(t, {
919 await profile.exec(['enable-2fa'])
939 const { profile, result } = await mockProfile(t, {
943 await profile.exec(['disable-2fa'])
985 const { profile, result } = await mockProfile(t, {
990 await profile.exec(['disable-2fa'])
999 const { profile, result } = await mockProfile(t, {
1005 await profile.exec(['disable-2fa'])
1015 const { profile, result } = await mockProfile(t, {
1021 await profile.exec(['disable-2fa'])
1057 const { profile, result } = await mockProfile(t, {
1063 await profile.exec(['disable-2fa'])
1070 const { profile } = await mockProfile(t)
1072 await t.rejects(
1081 const { profile } = await mockProfile(t)
1086 await testComp(t, {
1094 await testComp(t, {
1104 await t.test(subcmd, t => testComp(t, {
1113 const { profile } = await mockProfile(t)