2020-12-18 15:39:05 -05:00
/ * I M P O R T A N T
* This snapshot file is auto - generated , but designed for humans .
* It should be checked into source control and tracked carefully .
* Re - generate by setting TAP _SNAPSHOT = 1 and running tests .
* Make sure to inspect the output below . Do not ignore changes !
* /
'use strict'
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP enable-2fa from token and set otp, retries on pending and verifies with qrcode > should output 2fa enablement success msgs 1 ` ] = `
2020-12-18 15:39:05 -05:00
Scan into your authenticator app :
qrcode
2023-01-16 22:38:23 -05:00
Or enter code : 1234
2021-03-11 17:54:23 -05:00
2 FA successfully enabled . Below are your recovery codes , please print these out .
You will need these to recover access to your account if you lose your authentication device .
123456
789101
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get <key> --parseable > should output parseable result value 1 ` ] = `
2020-12-18 15:39:05 -05:00
foo
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get multiple args --parseable > should output parseable profile value results 1 ` ] = `
2020-12-18 15:39:05 -05:00
foo foo @ github . com ( verified ) https : //github.com/npm
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get multiple args comma separated > should output all keys 1 ` ] = `
2020-12-18 15:39:05 -05:00
foo foo @ github . com ( verified ) https : //github.com/npm
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get multiple args default output > should output all keys 1 ` ] = `
2020-12-18 15:39:05 -05:00
foo foo @ github . com ( verified ) https : //github.com/npm
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get no args --parseable > should output all profile info as parseable result 1 ` ] = `
2021-03-11 17:54:23 -05:00
tfa auth - and - writes
name foo
email foo @ github . com
email _verified true
created 2015 - 02 - 26 T01 : 26 : 37.384 Z
updated 2020 - 08 - 12 T16 : 19 : 35.326 Z
fullname Foo Bar
homepage https : //github.com
freenode foobar
twitter https : //twitter.com/npmjs
github https : //github.com/npm
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get no args default output > should output table with contents 1 ` ] = `
2023-03-31 06:38:48 -07:00
name : foo
email : foo @ github . com ( verified )
two - factor auth : auth - and - writes
fullname : Foo Bar
homepage : https : //github.com
freenode : foobar
twitter : https : //twitter.com/npmjs
github : https : //github.com/npm
created : 2015 - 02 - 26 T01 : 26 : 37.384 Z
updated : 2020 - 08 - 12 T16 : 19 : 35.326 Z
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get no args no tfa enabled > should output expected profile values 1 ` ] = `
2023-03-31 06:38:48 -07:00
name : foo
email : foo @ github . com ( verified )
two - factor auth : disabled
fullname : Foo Bar
homepage : https : //github.com
freenode : foobar
twitter : https : //twitter.com/npmjs
github : https : //github.com/npm
created : 2015 - 02 - 26 T01 : 26 : 37.384 Z
updated : 2020 - 08 - 12 T16 : 19 : 35.326 Z
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get no args profile has cidr_whitelist item > should output table with contents 1 ` ] = `
2023-03-31 06:38:48 -07:00
name : foo
email : foo @ github . com ( verified )
two - factor auth : auth - and - writes
fullname : Foo Bar
homepage : https : //github.com
freenode : foobar
twitter : https : //twitter.com/npmjs
github : https : //github.com/npm
created : 2015 - 02 - 26 T01 : 26 : 37.384 Z
updated : 2020 - 08 - 12 T16 : 19 : 35.326 Z
cidr _whitelist : 192.168 . 1.1
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile get no args unverified email > should output table with contents 1 ` ] = `
2023-03-31 06:38:48 -07:00
name : foo
email : foo @ github . com ( unverified )
two - factor auth : auth - and - writes
fullname : Foo Bar
homepage : https : //github.com
freenode : foobar
twitter : https : //twitter.com/npmjs
github : https : //github.com/npm
created : 2015 - 02 - 26 T01 : 26 : 37.384 Z
updated : 2020 - 08 - 12 T16 : 19 : 35.326 Z
2020-12-18 15:39:05 -05:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/profile.js TAP profile set <key> <value> writable key --parseable > should output parseable set key success msg 1 ` ] = `
2020-12-18 15:39:05 -05:00
fullname Lorem Ipsum
`