@@ -25,7 +25,6 @@ describe('socket scan report', async () => {
2525 --fold Fold reported alerts to some degree
2626 --help Print this help.
2727 --json Output result as json
28- --license Report the license policy status. Default: true
2928 --markdown Output result as markdown
3029 --reportLevel Which policy level alerts should be reported
3130 --security Report the security policy status. Default: true
@@ -35,10 +34,7 @@ describe('socket scan report', async () => {
3534 Note: By default it reports both so by default it consumes 3 quota units.
3635
3736 Your API token will need the \`full-scans:list\` scope regardless. Additionally
38- it needs \`security-policy:read\` to report on the security policy and it needs
39- the \`license-policy:read\` scope to report on the license policy.
40-
41- (Use \`--no-security\` or \`--no-license\` to omit one)
37+ it needs \`security-policy:read\` to report on the security policy.
4238
4339 By default the result is a nested object that looks like this:
4440 \`{[ecosystem]: {[pkgName]: {[version]: {[file]: {[type:loc]: policy}}}}\`
@@ -72,22 +68,20 @@ describe('socket scan report', async () => {
7268 const { code, stderr, stdout } = await invokeNpm ( entryPath , cmd )
7369 expect ( stdout ) . toMatchInlineSnapshot ( `""` )
7470 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
75- "
76- _____ _ _ /---------------
77- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
78- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
79- |_____|___|___|_,_|___|_|.dev | Command: \`socket scan report\`, cwd: <redacted>
80-
81- \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[37mInput error\\x1b[39m\\x1b[49m: Please provide the required fields:
71+ "
72+ _____ _ _ /---------------
73+ | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
74+ |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
75+ |_____|___|___|_,_|___|_|.dev | Command: \`socket scan report\`, cwd: <redacted>
8276
83- - Org name as the first argument \\x1b[31m(missing!)\\ x1b[39m
77+ \\x1b[31m\\xd7\\ x1b[39m \\x1b[41m\\x1b[37mInput error\\x1b[39m\\x1b[49m: Please provide the required fields:
8478
85- - Full Scan ID to fetch as second argument \\x1b[31m(missing!)\\x1b[39m
79+ - Org name as the first argument \\x1b[31m(missing!)\\x1b[39m
8680
87- - Not both the --json and --markdown flags \\x1b[32m(ok )\\x1b[39m
81+ - Full Scan ID to fetch as second argument \\x1b[31m(missing! )\\x1b[39m
8882
89- - At least one policy to report \\x1b[32m(ok)\\x1b[39m"
90- ` )
83+ - Not both the --json and --markdown flags \\x1b[32m(ok)\\x1b[39m"
84+ ` )
9185
9286 expect ( code , 'dry-run should exit with code 2 if missing input' ) . toBe ( 2 )
9387 }
0 commit comments