Lines Matching refs:otp
5 const setupOtplease = async (t, { otp = {}, ...rest }, fn) => {
7 otp: async () => '1234',
23 return await otplease(npm, otp, fn)
31 t.test('returns function results on otp success', async (t) => {
32 const fn = ({ otp }) => {
33 if (otp) {
49 t.test('prompts for otp for EOTP', async (t) => {
61 otp: { some: 'prop' },
68 t.strictSame(result, { some: 'prop', otp: '1234' })
72 const fn = ({ otp }) => {
73 if (otp) {
96 t.test('prompts for otp for 401', async (t) => {
118 t.strictSame(result, { otp: '1234' })
121 t.test('does not prompt for non-otp errors', async (t) => {