MCPcopy Create free account
hub / github.com/nodejs/node / readUserInfo

Function readUserInfo

deps/npm/test/lib/commands/profile.js:1003–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

profile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected