Lines Matching refs:set
8 async set () {},
252 t.test('profile set <key> <value>', async t => {
257 profile.exec(['set']),
258 /npm profile set <prop> <value>/,
266 profile.exec(['set', 'email']),
267 /npm profile set <prop> <value>/,
272 t.test('set password', async t => {
275 profile.exec(['set', 'password', '1234']),
277 'should throw an error refusing to set password from args'
284 profile.exec(['set', 'name', 'foo']),
285 /"name" is not a property we can set./,
294 async set (newUser) {
300 'should set new value to key'
317 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
318 t.equal(result(), 'Set fullname to Lorem Ipsum', 'should output set key success msg')
331 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
338 'should output json set key success msg'
351 await profile.exec(['set', 'fullname', 'Lorem Ipsum'])
353 t.matchSnapshot(result(), 'should output parseable set key success msg')
364 async set (newUser) {
370 'should set new value to email'
383 await profile.exec(['set', 'email', 'foo@npmjs.com'])
384 t.equal(result(), 'Set email to foo@npmjs.com', 'should output set key success msg')
394 async set (newUser) {
403 'should set new password'
432 await profile.exec(['set', 'password'])
434 t.equal(result(), 'Set password', 'should output set password success msg')
446 async set () {
473 await profile.exec(['set', 'password'])
481 t.equal(result(), 'Set password', 'should output set password success msg')
607 async set (newProfile, conf) {
615 'should set tfa mode'
651 t.equal(registry, npm.flatOptions.registry, 'should set expected registry')
652 t.equal(token, 'token', 'should set expected token')
666 t.test('from token and set otp, retries on pending and verifies with qrcode', async t => {
679 async set (newProfile, conf) {
683 // first time calling npm-profile.set should reset 2fa
703 'should set tfa mode approprietly in follow-up call'
711 'should set tfa as otp code?'
757 t.test('from token and set otp, retrieves invalid otp', async t => {
767 async set (newProfile, conf) {
806 async set (newProfile, conf) {
850 async set (newProfile, conf) {
893 async set (newProfile, conf) {
953 async set (newProfile, conf) {
1027 t.test('--otp config already set', async t => {
1034 async set (newProfile, conf) {
1088 expect: ['enable-2fa', 'disable-2fa', 'get', 'set'],
1102 const noAutocompleteCmds = ['disable-2fa', 'disable-tfa', 'get', 'set']