Lines Matching defs:const
0 const t = require('tap')
2 const setupMockNpm = require('../../fixtures/mock-npm')
3 const tmock = require('../../fixtures/tmock')
5 const setupOtplease = async (t, { otp = {}, ...rest }, fn) => {
6 const readUserInfo = {
10 const webAuth = async (opener) => {
15 const otplease = tmock(t, '{LIB}/utils/otplease.js', {
21 const { npm } = await setupMockNpm(t, rest)
27 const result = await setupOtplease(t, {}, () => 'test string')
32 const fn = ({ otp }) => {
39 const result = await setupOtplease(t, {
52 const fn = async (opts) => {
60 const result = await setupOtplease(t, {
72 const fn = ({ otp }) => {
85 const result = await setupOtplease(t, {
99 const fn = async (opts) => {
111 const result = await setupOtplease(t, {
122 const fn = async (opts) => {
135 const fn = async (opts) => {