Skip to content

Commit f8f4c92

Browse files
committed
Update snapshots
1 parent f800acd commit f8f4c92

24 files changed

+82
-114
lines changed

src/commands/analytics/cmd-analytics.test.mts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ describe('socket analytics', async () => {
7777
7878
\\xd7 Input error: Please review the input requirements and try again
7979
80-
- The time filter must either be 7, 30 or 90 (ok)
81-
82-
- You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
80+
\\u221a The time filter must either be 7, 30 or 90
81+
\\xd7 You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
8382
`)
8483

8584
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -110,9 +109,8 @@ describe('socket analytics', async () => {
110109
111110
\\xd7 Input error: Please review the input requirements and try again
112111
113-
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
114-
115-
- The time filter must either be 7, 30 or 90 (ok)"
112+
\\xd7 Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
113+
\\u221a The time filter must either be 7, 30 or 90"
116114
`)
117115

118116
expect(code, 'dry-run should reject legacy flags with code 2').toBe(2)
@@ -170,9 +168,8 @@ describe('socket analytics', async () => {
170168
171169
\\xd7 Input error: Please review the input requirements and try again
172170
173-
- When scope=repo, repo name should be the second argument (missing)
174-
175-
- The time filter must either be 7, 30 or 90 (ok)"
171+
\\xd7 When scope=repo, repo name should be the second argument (missing)
172+
\\u221a The time filter must either be 7, 30 or 90"
176173
`)
177174

178175
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -281,9 +278,8 @@ describe('socket analytics', async () => {
281278
282279
\\xd7 Input error: Please review the input requirements and try again
283280
284-
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
285-
286-
- The time filter must either be 7, 30 or 90 (ok)"
281+
\\xd7 Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
282+
\\u221a The time filter must either be 7, 30 or 90"
287283
`)
288284

289285
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/audit-log/cmd-audit-log.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('socket audit-log', async () => {
8585
\\xd7 Skipping auto-discovery of org in dry-run mode
8686
\\xd7 Input error: Please review the input requirements and try again
8787
88-
- Org name by default setting, --org, or auto-discovered (missing)"
88+
\\xd7 Org name by default setting, --org, or auto-discovered (missing)"
8989
`)
9090

9191
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -114,7 +114,7 @@ describe('socket audit-log', async () => {
114114
115115
\\xd7 Input error: Please review the input requirements and try again
116116
117-
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)"
117+
\\xd7 Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)"
118118
`)
119119

120120
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/cli.test.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ describe('socket root command', async () => {
6464
Environment variables
6565
SOCKET_CLI_API_TOKEN Set the Socket API token
6666
SOCKET_CLI_CONFIG A JSON stringified Socket configuration object
67+
SOCKET_CLI_GITHUB_API_URL Change the base URL for GitHub REST API calls
6768
SOCKET_CLI_GIT_USER_EMAIL The git config \`user.email\` used by Socket CLI
6869
Defaults: github-actions[bot]@users.noreply.github.com
6970
SOCKET_CLI_GIT_USER_NAME The git config \`user.name\` used by Socket CLI
@@ -78,7 +79,7 @@ describe('socket root command', async () => {
7879
SOCKET_CLI_VIEW_ALL_RISKS View all risks of a Socket wrapped npm/npx run
7980
8081
Environment variables for development
81-
SOCKET_CLI_API_BASE_URL Change the base URL for all API-calls
82+
SOCKET_CLI_API_BASE_URL Change the base URL for Socket API calls
8283
Defaults: The "apiBaseUrl" value of socket/settings local app data
8384
if present, else https://api.socket.dev/v0/
8485
SOCKET_CLI_API_PROXY Set the proxy all requests are routed through, e.g. if set to

src/commands/config/cmd-config-get.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('socket config get', async () => {
7777
7878
\\xd7 Input error: Please review the input requirements and try again
7979
80-
- Config key should be the first arg (missing)"
80+
\\xd7 Config key should be the first arg (missing)"
8181
`)
8282

8383
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/config/cmd-config-set.test.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ describe('socket config get', async () => {
7878
7979
\\xd7 Input error: Please review the input requirements and try again
8080
81-
- Config key should be the first arg (missing)
82-
83-
- Key value should be the remaining args (use \`unset\` to unset a value) (missing)"
81+
\\xd7 Config key should be the first arg (missing)
82+
\\xd7 Key value should be the remaining args (use \`unset\` to unset a value) (missing)"
8483
`)
8584

8685
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/config/cmd-config-unset.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('socket config unset', async () => {
7272
7373
\\xd7 Input error: Please review the input requirements and try again
7474
75-
- Config key should be the first arg (missing)"
75+
\\xd7 Config key should be the first arg (missing)"
7676
`)
7777

7878
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/manifest/cmd-manifest-conda.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('socket manifest conda', async () => {
101101
102102
\\xd7 Input error: Please review the input requirements and try again
103103
104-
- Can only accept one DIR (make sure to escape spaces!) (received 2)"
104+
\\xd7 Can only accept one DIR (make sure to escape spaces!) (received 2)"
105105
`)
106106
},
107107
)
@@ -123,7 +123,7 @@ describe('socket manifest conda', async () => {
123123
"{
124124
"ok": false,
125125
"message": "Input error",
126-
"data": "Please review the input requirements and try again\\n\\n - Can only accept one DIR (make sure to escape spaces!) (received 2)\\n"
126+
"data": "Please review the input requirements and try again\\n\\n \\xd7 Can only accept one DIR (make sure to escape spaces!) (received 2)"
127127
}"
128128
`)
129129
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
@@ -159,7 +159,7 @@ describe('socket manifest conda', async () => {
159159
160160
\\xd7 Input error: Please review the input requirements and try again
161161
162-
- Can only accept one DIR (make sure to escape spaces!) (received 2)"
162+
\\xd7 Can only accept one DIR (make sure to escape spaces!) (received 2)"
163163
`)
164164
},
165165
)

src/commands/organization/cmd-organization-policy-license.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('socket organization policy license', async () => {
7373
\\xd7 Skipping auto-discovery of org in dry-run mode
7474
\\xd7 Input error: Please review the input requirements and try again
7575
76-
- You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
76+
\\xd7 You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
7777
`)
7878

7979
expect(code, 'dry-run should exit with code 2 if input bad').toBe(2)

src/commands/package/cmd-package-score.test.mts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ describe('socket package score', async () => {
8484
8585
\\xd7 Input error: Please review the input requirements and try again
8686
87-
- First parameter must be an ecosystem or the whole purl (bad)
88-
89-
- Expecting at least one package (missing)
90-
91-
- You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
87+
\\xd7 First parameter must be an ecosystem or the whole purl (bad)
88+
\\xd7 Expecting at least one package (missing)
89+
\\xd7 You need to be logged in to use this command. See \`socket login\`. (missing Socket API token)"
9290
`)
9391

9492
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

src/commands/package/cmd-package-shallow.test.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ describe('socket package shallow', async () => {
8282
8383
\\xd7 Input error: Please review the input requirements and try again
8484
85-
- First parameter should be an ecosystem or all args must be purls (bad)
86-
87-
- Expecting at least one package (missing)"
85+
\\xd7 First parameter should be an ecosystem or all args must be purls (bad)
86+
\\xd7 Expecting at least one package (missing)"
8887
`)
8988

9089
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)

0 commit comments

Comments
 (0)