Lines Matching defs:username
12 username: (username) => {
13 if (username === 'invalid') {
14 return new Error('invalid username')
68 t.test('username', async (t) => {
69 readResult = 'username'
74 const result = await readUserInfo.username()
75 t.equal(result, 'username', 'received the username')
78 t.test('username - invalid warns and retries', async (t) => {
85 const pResult = readUserInfo.username(null, null)
86 // have to swap it to a valid username after execution starts
90 t.equal(result, 'valid', 'received the username')
91 t.equal(logMsg, 'invalid username')