({ otp })
| 28 | |
| 29 | t.test('returns function results on otp success', async (t) => { |
| 30 | const fn = ({ otp }) => { |
| 31 | if (otp) { |
| 32 | return 'success' |
| 33 | } |
| 34 | throw Object.assign(new Error('nope'), { code: 'EOTP' }) |
| 35 | } |
| 36 | |
| 37 | const result = await setupOtplease(t, { |
| 38 | globals: { |
no test coverage detected