@@ -71,8 +71,6 @@ describe('socket organization policy security', async () => {
7171 \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
7272 \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
7373
74- - Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
75-
7674 - You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)
7775 \\x1b[22m"
7876 ` )
@@ -81,38 +79,6 @@ describe('socket organization policy security', async () => {
8179 } ,
8280 )
8381
84- cmdit (
85- [
86- 'organization' ,
87- 'policy' ,
88- 'security' ,
89- '--dry-run' ,
90- '--config' ,
91- '{"isTestingV1": true, "apiToken":"anything"}' ,
92- ] ,
93- 'should report missing org name in v1' ,
94- async cmd => {
95- const { code, stderr, stdout } = await invokeNpm ( binCliPath , cmd )
96- expect ( stdout ) . toMatchInlineSnapshot ( `""` )
97- expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
98- "
99- _____ _ _ /---------------
100- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
101- |__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
102- |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: <redacted>
103- \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
104- \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
105- \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
106- \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
107-
108- - Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
109- \\x1b[22m"
110- ` )
111-
112- expect ( code , 'dry-run should exit with code 2 if missing input' ) . toBe ( 2 )
113- } ,
114- )
115-
11682 cmdit (
11783 [
11884 'organization' ,
0 commit comments