| 1001 | } |
| 1002 | |
| 1003 | const readUserInfo = t => ({ |
| 1004 | async password () { |
| 1005 | t.ok('should interactively ask for password confirmation') |
| 1006 | return 'password1234' |
| 1007 | }, |
| 1008 | async otp (label) { |
| 1009 | t.equal( |
| 1010 | label, |
| 1011 | 'This operation requires a one-time password.\nEnter OTP:', |
| 1012 | 'should ask for otp confirmation' |
| 1013 | ) |
| 1014 | return '1234' |
| 1015 | }, |
| 1016 | }) |
| 1017 | |
| 1018 | t.test('default output', async t => { |
| 1019 | t.plan(4) |