Skip to content

Commit e6401a9

Browse files
committed
Update snapshots
1 parent 1c88f0b commit e6401a9

23 files changed

+43
-85
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ 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)
83-
"
82+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
8483
`)
8584

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

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

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

293289
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +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)
89-
"
88+
- Org name by default setting, --org, or auto-discovered (missing)"
9089
`)
9190

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

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

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

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

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

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ 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)
84-
"
83+
- Key value should be the remaining args (use \`unset\` to unset a value) (missing)"
8584
`)
8685

8786
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +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)
76-
"
75+
- Config key should be the first arg (missing)"
7776
`)
7877

7978
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +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)
105-
"
104+
- Can only accept one DIR (make sure to escape spaces!) (received 2)"
106105
`)
107106
},
108107
)
@@ -124,7 +123,7 @@ describe('socket manifest conda', async () => {
124123
"{
125124
"ok": false,
126125
"message": "Input error",
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"
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"
128127
}"
129128
`)
130129
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
@@ -160,8 +159,7 @@ describe('socket manifest conda', async () => {
160159
161160
\\xd7 Input error: Please review the input requirements and try again
162161
163-
- Can only accept one DIR (make sure to escape spaces!) (received 2)
164-
"
162+
- Can only accept one DIR (make sure to escape spaces!) (received 2)"
165163
`)
166164
},
167165
)

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

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

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

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ 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)
92-
"
91+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
9392
`)
9493

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

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ 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)
88-
"
87+
- Expecting at least one package (missing)"
8988
`)
9089

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

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ 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)
82-
"
81+
- You need to be logged in to use this command. See \`socket login\`. (missing API token)"
8382
`)
8483

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

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

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

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

0 commit comments

Comments
 (0)