Skip to content

Commit c04f228

Browse files
committed
Update organization command test error handling
1 parent 60db591 commit c04f228

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

src/commands/organization/cmd-organization-dependencies.test.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ describe('socket organization dependencies', async () => {
3737
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3838
"
3939
_____ _ _ /---------------
40-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
41-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
42-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: ~/projects/socket-cli"
40+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
41+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
42+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: <redacted>"
4343
`)
4444

4545
expect(code, 'explicit help should exit with code 0').toBe(0)
@@ -64,9 +64,9 @@ describe('socket organization dependencies', async () => {
6464
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6565
"
6666
_____ _ _ /---------------
67-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
68-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
69-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: ~/projects/socket-cli"
67+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
68+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
69+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: <redacted>"
7070
`)
7171

7272
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)

src/commands/organization/cmd-organization-list.test.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ describe('socket organization list', async () => {
3737
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3838
"
3939
_____ _ _ /---------------
40-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
41-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
42-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: ~/projects/socket-cli"
40+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
41+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
42+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: <redacted>"
4343
`)
4444

4545
expect(code, 'explicit help should exit with code 0').toBe(0)
@@ -64,9 +64,9 @@ describe('socket organization list', async () => {
6464
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6565
"
6666
_____ _ _ /---------------
67-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
68-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
69-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: ~/projects/socket-cli"
67+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
68+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
69+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: <redacted>"
7070
`)
7171

7272
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ describe('socket organization list', async () => {
3434
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3535
"
3636
_____ _ _ /---------------
37-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
38-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
39-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: ~/projects/socket-cli"
37+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
38+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
39+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: <redacted>"
4040
`)
4141

4242
expect(code, 'explicit help should exit with code 0').toBe(0)
@@ -63,9 +63,9 @@ describe('socket organization list', async () => {
6363
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6464
"
6565
_____ _ _ /---------------
66-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
67-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
68-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: ~/projects/socket-cli"
66+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
67+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
68+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: <redacted>"
6969
`)
7070

7171
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)

src/commands/organization/cmd-organization-quota.test.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ describe('socket organization quota', async () => {
3434
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3535
"
3636
_____ _ _ /---------------
37-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
38-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
39-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: ~/projects/socket-cli"
37+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
38+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
39+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: <redacted>"
4040
`)
4141

4242
expect(code, 'explicit help should exit with code 0').toBe(0)
@@ -61,9 +61,9 @@ describe('socket organization quota', async () => {
6161
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6262
"
6363
_____ _ _ /---------------
64-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
65-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
66-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: ~/projects/socket-cli"
64+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
65+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
66+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: <redacted>"
6767
`)
6868

6969
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ describe('socket organization', async () => {
3636
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3737
"
3838
_____ _ _ /---------------
39-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
40-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
41-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: ~/projects/socket-cli"
39+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
40+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
41+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: <redacted>"
4242
`)
4343

4444
expect(code, 'explicit help should exit with code 0').toBe(0)
@@ -59,9 +59,9 @@ describe('socket organization', async () => {
5959
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6060
"
6161
_____ _ _ /---------------
62-
| __|___ ___| |_ ___| |_ | CLI: v1.1.23
63-
|__ | * | _| '_| -_| _| | token: zP416*** (env), org: (not set)
64-
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: ~/projects/socket-cli"
62+
| __|___ ___| |_ ___| |_ | CLI: <redacted>
63+
|__ | * | _| '_| -_| _| | token: <redacted>, org: <redacted>
64+
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: <redacted>"
6565
`)
6666

6767
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)

0 commit comments

Comments
 (0)