Skip to content

Commit 13522d4

Browse files
committed
Revert "Update snapshots"
This reverts commit e6401a9.
1 parent 1b6dac5 commit 13522d4

23 files changed

+85
-43
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ describe('socket analytics', async () => {
7979
8080
- The time filter must either be 7, 30 or 90 (ok)
8181
82-
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
82+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)
83+
"
8384
`)
8485

8586
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -112,7 +113,8 @@ describe('socket analytics', async () => {
112113
113114
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
114115
115-
- The time filter must either be 7, 30 or 90 (ok)"
116+
- The time filter must either be 7, 30 or 90 (ok)
117+
"
116118
`)
117119

118120
expect(code, 'dry-run should reject legacy flags with code 2').toBe(2)
@@ -172,7 +174,8 @@ describe('socket analytics', async () => {
172174
173175
- When scope=repo, repo name should be the second argument (missing)
174176
175-
- The time filter must either be 7, 30 or 90 (ok)"
177+
- The time filter must either be 7, 30 or 90 (ok)
178+
"
176179
`)
177180

178181
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -283,7 +286,8 @@ describe('socket analytics', async () => {
283286
284287
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
285288
286-
- The time filter must either be 7, 30 or 90 (ok)"
289+
- The time filter must either be 7, 30 or 90 (ok)
290+
"
287291
`)
288292

289293
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ 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+
- Org name by default setting, --org, or auto-discovered (missing)
89+
"
8990
`)
9091

9192
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -114,7 +115,8 @@ describe('socket audit-log', async () => {
114115
115116
\\xd7 Input error: Please review the input requirements and try again
116117
117-
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)"
118+
- Legacy flags are no longer supported. See v1 migration guide. (received legacy flags)
119+
"
118120
`)
119121

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ 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+
- Config key should be the first arg (missing)
81+
"
8182
`)
8283

8384
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ describe('socket config get', async () => {
8080
8181
- Config key should be the first arg (missing)
8282
83-
- Key value should be the remaining args (use \`unset\` to unset a value) (missing)"
83+
- Key value should be the remaining args (use \`unset\` to unset a value) (missing)
84+
"
8485
`)
8586

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ 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+
- Config key should be the first arg (missing)
76+
"
7677
`)
7778

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

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ 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+
- Can only accept one DIR (make sure to escape spaces!) (received 2)
105+
"
105106
`)
106107
},
107108
)
@@ -123,7 +124,7 @@ describe('socket manifest conda', async () => {
123124
"{
124125
"ok": false,
125126
"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"
127+
"data": "Please review the input requirements and try again\\n\\n - Can only accept one DIR (make sure to escape spaces!) (\\u001b[31mreceived 2\\u001b[39m)\\n"
127128
}"
128129
`)
129130
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
@@ -159,7 +160,8 @@ describe('socket manifest conda', async () => {
159160
160161
\\xd7 Input error: Please review the input requirements and try again
161162
162-
- Can only accept one DIR (make sure to escape spaces!) (received 2)"
163+
- Can only accept one DIR (make sure to escape spaces!) (received 2)
164+
"
163165
`)
164166
},
165167
)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ 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 API token)"
76+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)
77+
"
7778
`)
7879

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ describe('socket package score', async () => {
8888
8989
- Expecting at least one package (missing)
9090
91-
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
91+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)
92+
"
9293
`)
9394

9495
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ describe('socket package shallow', async () => {
8484
8585
- First parameter should be an ecosystem or all args must be purls (bad)
8686
87-
- Expecting at least one package (missing)"
87+
- Expecting at least one package (missing)
88+
"
8889
`)
8990

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

src/commands/repository/cmd-repository-create.test.mts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ describe('socket repository create', async () => {
7878
7979
- Repository name as first argument (missing)
8080
81-
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
81+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)
82+
"
8283
`)
8384

8485
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -141,7 +142,8 @@ describe('socket repository create', async () => {
141142
142143
- Org name by default setting, --org, or auto-discovered (missing)
143144
144-
- Repository name as first argument (ok)"
145+
- Repository name as first argument (ok)
146+
"
145147
`)
146148

147149
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -169,7 +171,8 @@ describe('socket repository create', async () => {
169171
170172
\\xd7 Input error: Please review the input requirements and try again
171173
172-
- Repository name as first argument (missing)"
174+
- Repository name as first argument (missing)
175+
"
173176
`)
174177

175178
expect(code, 'dry-run should exit with code 2 if missing input').toBe(2)
@@ -199,7 +202,8 @@ describe('socket repository create', async () => {
199202
200203
\\xd7 Input error: Please review the input requirements and try again
201204
202-
- Repository name as first argument (missing)"
205+
- Repository name as first argument (missing)
206+
"
203207
`)
204208

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

0 commit comments

Comments
 (0)