@@ -115,7 +115,8 @@ describe('socket analytics', async () => {
115115 \\xd7 Input error: Please review the input requirements and try again
116116
117117 \\xd7 Legacy flags are no longer supported. See the v1 migration guide (https://docs.socket.dev/docs/v1-migration-guide). (received legacy flags)
118- \\u221a The time filter must either be 7, 30 or 90"
118+ \\u221a The time filter must either be 7, 30 or 90
119+ "
119120 ` )
120121
121122 expect ( code , 'dry-run should reject legacy flags with code 2' ) . toBe ( 2 )
@@ -127,13 +128,18 @@ describe('socket analytics', async () => {
127128 'should run to dryrun without args' ,
128129 async cmd => {
129130 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
130- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
131+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
131132 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
132133 "
133134 _____ _ _ /---------------
134135 | __|___ ___| |_ ___| |_ | CLI: <redacted>
135136 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
136- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
137+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
138+
139+ \\xd7 Input error: Please review the input requirements and try again
140+
141+ \\u221a The time filter must either be 7, 30 or 90
142+ "
137143 ` )
138144
139145 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -145,13 +151,18 @@ describe('socket analytics', async () => {
145151 'should accept org arg' ,
146152 async cmd => {
147153 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
148- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
154+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
149155 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
150156 "
151157 _____ _ _ /---------------
152158 | __|___ ___| |_ ___| |_ | CLI: <redacted>
153159 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
154- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
160+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
161+
162+ \\xd7 Input error: Please review the input requirements and try again
163+
164+ \\u221a The time filter must either be 7, 30 or 90
165+ "
155166 ` )
156167
157168 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -180,7 +191,8 @@ describe('socket analytics', async () => {
180191 \\xd7 Input error: Please review the input requirements and try again
181192
182193 \\xd7 When scope=repo, repo name should be the second argument (missing)
183- \\u221a The time filter must either be 7, 30 or 90"
194+ \\u221a The time filter must either be 7, 30 or 90
195+ "
184196 ` )
185197
186198 expect ( code , 'dry-run should exit with code 2 if missing input' ) . toBe ( 2 )
@@ -199,13 +211,18 @@ describe('socket analytics', async () => {
199211 'should accept repo with arg' ,
200212 async cmd => {
201213 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
202- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
214+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
203215 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
204216 "
205217 _____ _ _ /---------------
206218 | __|___ ___| |_ ___| |_ | CLI: <redacted>
207219 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
208- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
220+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
221+
222+ \\xd7 Input error: Please review the input requirements and try again
223+
224+ \\u221a The time filter must either be 7, 30 or 90
225+ "
209226 ` )
210227
211228 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -217,13 +234,18 @@ describe('socket analytics', async () => {
217234 'should accept time 7 arg' ,
218235 async cmd => {
219236 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
220- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
237+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
221238 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
222239 "
223240 _____ _ _ /---------------
224241 | __|___ ___| |_ ___| |_ | CLI: <redacted>
225242 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
226- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
243+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
244+
245+ \\xd7 Input error: Please review the input requirements and try again
246+
247+ \\u221a The time filter must either be 7, 30 or 90
248+ "
227249 ` )
228250
229251 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -235,13 +257,18 @@ describe('socket analytics', async () => {
235257 'should accept time 30 arg' ,
236258 async cmd => {
237259 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
238- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
260+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
239261 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
240262 "
241263 _____ _ _ /---------------
242264 | __|___ ___| |_ ___| |_ | CLI: <redacted>
243265 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
244- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
266+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
267+
268+ \\xd7 Input error: Please review the input requirements and try again
269+
270+ \\u221a The time filter must either be 7, 30 or 90
271+ "
245272 ` )
246273
247274 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -253,13 +280,18 @@ describe('socket analytics', async () => {
253280 'should accept time 90 arg' ,
254281 async cmd => {
255282 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
256- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
283+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
257284 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
258285 "
259286 _____ _ _ /---------------
260287 | __|___ ___| |_ ___| |_ | CLI: <redacted>
261288 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
262- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
289+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
290+
291+ \\xd7 Input error: Please review the input requirements and try again
292+
293+ \\u221a The time filter must either be 7, 30 or 90
294+ "
263295 ` )
264296
265297 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -290,7 +322,8 @@ describe('socket analytics', async () => {
290322 \\xd7 Input error: Please review the input requirements and try again
291323
292324 \\xd7 Legacy flags are no longer supported. See the v1 migration guide (https://docs.socket.dev/docs/v1-migration-guide). (received legacy flags)
293- \\u221a The time filter must either be 7, 30 or 90"
325+ \\u221a The time filter must either be 7, 30 or 90
326+ "
294327 ` )
295328
296329 expect ( code , 'dry-run should exit with code 2 if missing input' ) . toBe ( 2 )
@@ -309,13 +342,18 @@ describe('socket analytics', async () => {
309342 'should accept org and time arg' ,
310343 async cmd => {
311344 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
312- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
345+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
313346 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
314347 "
315348 _____ _ _ /---------------
316349 | __|___ ___| |_ ___| |_ | CLI: <redacted>
317350 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
318- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
351+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
352+
353+ \\xd7 Input error: Please review the input requirements and try again
354+
355+ \\u221a The time filter must either be 7, 30 or 90
356+ "
319357 ` )
320358
321359 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
@@ -335,13 +373,18 @@ describe('socket analytics', async () => {
335373 'should accept repo and time arg' ,
336374 async cmd => {
337375 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
338- expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
376+ expect ( stdout ) . toMatchInlineSnapshot ( `""` )
339377 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
340378 "
341379 _____ _ _ /---------------
342380 | __|___ ___| |_ ___| |_ | CLI: <redacted>
343381 |__ | . | _| '_| -_| _| | token: <redacted>, org: <redacted>
344- |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>"
382+ |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
383+
384+ \\xd7 Input error: Please review the input requirements and try again
385+
386+ \\u221a The time filter must either be 7, 30 or 90
387+ "
345388 ` )
346389
347390 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
0 commit comments