Debian Codegraph @

tap-snapshots/test/lib/commands/profile.js.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 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`] = `
9 Scan into your authenticator app:
10 qrcode
11 Or enter code: 1234
12 2FA successfully enabled. Below are your recovery codes, please print these out.
13 You will need these to recover access to your account if you lose your authentication device.
14 123456
15 789101
16 `
17
18 exports[`test/lib/commands/profile.js TAP profile get <key> --parseable > should output parseable result value 1`] = `
19 foo
20 `
21
22 exports[`test/lib/commands/profile.js TAP profile get multiple args --parseable > should output parseable profile value results 1`] = `
23 foo [email protected] (verified) https://github.com/npm
24 `
25
26 exports[`test/lib/commands/profile.js TAP profile get multiple args comma separated > should output all keys 1`] = `
27 foo [email protected] (verified) https://github.com/npm
28 `
29
30 exports[`test/lib/commands/profile.js TAP profile get multiple args default output > should output all keys 1`] = `
31 foo [email protected] (verified) https://github.com/npm
32 `
33
34 exports[`test/lib/commands/profile.js TAP profile get no args --parseable > should output all profile info as parseable result 1`] = `
35 tfa auth-and-writes
36 name foo
37 email [email protected]
38 email_verified true
39 created 2015-02-26T01:26:37.384Z
40 updated 2020-08-12T16:19:35.326Z
41 fullname Foo Bar
42 homepage https://github.com
43 freenode foobar
44 twitter https://twitter.com/npmjs
45 github https://github.com/npm
46 `
47
48 exports[`test/lib/commands/profile.js TAP profile get no args default output > should output table with contents 1`] = `
49 name: foo
50 email: [email protected] (verified)
51 two-factor auth: auth-and-writes
52 fullname: Foo Bar
53 homepage: https://github.com
54 freenode: foobar
55 twitter: https://twitter.com/npmjs
56 github: https://github.com/npm
57 created: 2015-02-26T01:26:37.384Z
58 updated: 2020-08-12T16:19:35.326Z
59 `
60
61 exports[`test/lib/commands/profile.js TAP profile get no args no tfa enabled > should output expected profile values 1`] = `
62 name: foo
63 email: [email protected] (verified)
64 two-factor auth: disabled
65 fullname: Foo Bar
66 homepage: https://github.com
67 freenode: foobar
68 twitter: https://twitter.com/npmjs
69 github: https://github.com/npm
70 created: 2015-02-26T01:26:37.384Z
71 updated: 2020-08-12T16:19:35.326Z
72 `
73
74 exports[`test/lib/commands/profile.js TAP profile get no args profile has cidr_whitelist item > should output table with contents 1`] = `
75 name: foo
76 email: [email protected] (verified)
77 two-factor auth: auth-and-writes
78 fullname: Foo Bar
79 homepage: https://github.com
80 freenode: foobar
81 twitter: https://twitter.com/npmjs
82 github: https://github.com/npm
83 created: 2015-02-26T01:26:37.384Z
84 updated: 2020-08-12T16:19:35.326Z
85 cidr_whitelist: 192.168.1.1
86 `
87
88 exports[`test/lib/commands/profile.js TAP profile get no args unverified email > should output table with contents 1`] = `
89 name: foo
90 email: [email protected](unverified)
91 two-factor auth: auth-and-writes
92 fullname: Foo Bar
93 homepage: https://github.com
94 freenode: foobar
95 twitter: https://twitter.com/npmjs
96 github: https://github.com/npm
97 created: 2015-02-26T01:26:37.384Z
98 updated: 2020-08-12T16:19:35.326Z
99 `
100
101 exports[`test/lib/commands/profile.js TAP profile set <key> <value> writable key --parseable > should output parseable set key success msg 1`] = `
102 fullname Lorem Ipsum
103 `