Skip to content

Commit 436d72c

Browse files
committed
Update snapshots
1 parent aa7a68e commit 436d72c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+536
-536
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ describe('socket analytics', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Look up analytics data
22-
23-
Usage
24-
$ socket analytics --scope=<scope> --time=<time filter>
25-
26-
Default parameters are set to show the organization-level analytics over the
27-
last 7 days.
28-
29-
Options
30-
--dryRun Do input validation for a command and exit 0 when input is ok
31-
--file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
32-
--help Print this help.
33-
--json Output result as json
34-
--markdown Output result as markdown
35-
--repo Name of the repository. Only valid when scope=repo
36-
--scope Scope of the analytics data - either 'org' or 'repo', default: org
37-
--time Time filter - either 7, 30 or 90, default: 7
38-
39-
Examples
40-
$ socket analytics --scope=org --time=7
41-
$ socket analytics --scope=org --time=30
42-
$ socket analytics --scope=repo --repo=test-repo --time=30"
43-
`
21+
"Look up analytics data
22+
23+
Usage
24+
$ socket analytics --scope=<scope> --time=<time filter>
25+
26+
Default parameters are set to show the organization-level analytics over the
27+
last 7 days.
28+
29+
Options
30+
--dryRun Do input validation for a command and exit 0 when input is ok
31+
--file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
32+
--help Print this help
33+
--json Output result as json
34+
--markdown Output result as markdown
35+
--repo Name of the repository. Only valid when scope=repo
36+
--scope Scope of the analytics data - either 'org' or 'repo', default: org
37+
--time Time filter - either 7, 30 or 90, default: 7
38+
39+
Examples
40+
$ socket analytics --scope=org --time=7
41+
$ socket analytics --scope=org --time=30
42+
$ socket analytics --scope=repo --repo=test-repo --time=30"
43+
`
4444
)
4545
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
4646
"

src/commands/audit-log/cmd-audit-log.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ describe('socket audit-log', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Look up the audit log for an organization
22-
23-
Usage
24-
$ socket audit-log <org slug>
25-
26-
This feature requires an Enterprise Plan. To learn more about getting access
27-
to this feature and many more, please visit https://socket.dev/pricing
28-
29-
Options
30-
--dryRun Do input validation for a command and exit 0 when input is ok
31-
--help Print this help.
32-
--json Output result as json
33-
--markdown Output result as markdown
34-
--page Page number - default is 1
35-
--perPage Results per page - default is 30
36-
--type Type of log event
37-
38-
Examples
39-
$ socket audit-log FakeOrg"
40-
`
21+
"Look up the audit log for an organization
22+
23+
Usage
24+
$ socket audit-log <org slug>
25+
26+
This feature requires an Enterprise Plan. To learn more about getting access
27+
to this feature and many more, please visit https://socket.dev/pricing
28+
29+
Options
30+
--dryRun Do input validation for a command and exit 0 when input is ok
31+
--help Print this help
32+
--json Output result as json
33+
--markdown Output result as markdown
34+
--page Page number - default is 1
35+
--perPage Results per page - default is 30
36+
--type Type of log event
37+
38+
Examples
39+
$ socket audit-log FakeOrg"
40+
`
4141
)
4242
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
4343
"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('socket config get', async () => {
2525
2626
Options
2727
--dryRun Do input validation for a command and exit 0 when input is ok
28-
--help Print this help.
28+
--help Print this help
2929
--json Output result as json
3030
--markdown Output result as markdown
3131

src/commands/config/cmd-config-list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('socket config get', async () => {
2626
Options
2727
--dryRun Do input validation for a command and exit 0 when input is ok
2828
--full Show full tokens in plaintext (unsafe)
29-
--help Print this help.
29+
--help Print this help
3030
--json Output result as json
3131
--markdown Output result as markdown
3232

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('socket config get', async () => {
2525
2626
Options
2727
--dryRun Do input validation for a command and exit 0 when input is ok
28-
--help Print this help.
28+
--help Print this help
2929
--json Output result as json
3030
--markdown Output result as markdown
3131

src/commands/config/cmd-config-unset.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('socket config unset', async () => {
2525
2626
Options
2727
--dryRun Do input validation for a command and exit 0 when input is ok
28-
--help Print this help.
28+
--help Print this help
2929
--json Output result as json
3030
--markdown Output result as markdown
3131

src/commands/config/cmd-config.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ describe('socket config', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Commands related to the local CLI configuration
21+
"Commands related to the local CLI configuration
2222
23-
Usage
24-
$ socket config <command>
23+
Usage
24+
$ socket config <command>
2525
26-
Commands
27-
auto Automatically discover and set the correct value config item
28-
get Get the value of a local CLI config item
29-
list Show all local CLI config items and their values
30-
set Update the value of a local CLI config item
31-
unset Clear the value of a local CLI config item
26+
Commands
27+
auto Automatically discover and set the correct value config item
28+
get Get the value of a local CLI config item
29+
list Show all local CLI config items and their values
30+
set Update the value of a local CLI config item
31+
unset Clear the value of a local CLI config item
3232
33-
Options
34-
--dryRun Do input validation for a command and exit 0 when input is ok
35-
--help Print this help.
33+
Options
34+
--dryRun Do input validation for a command and exit 0 when input is ok
35+
--help Print this help
3636
37-
Examples
38-
$ socket config --help"
39-
`
37+
Examples
38+
$ socket config --help"
39+
`
4040
)
4141
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
4242
"

src/commands/dependencies/cmd-dependencies.test.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ describe('socket dependencies', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Search for any dependency that is being used in your organization
21+
"Search for any dependency that is being used in your organization
2222
23-
Usage
24-
socket dependencies
23+
Usage
24+
socket dependencies
2525
26-
Options
27-
--dryRun Do input validation for a command and exit 0 when input is ok
28-
--help Print this help.
29-
--json Output result as json
30-
--limit Maximum number of dependencies returned
31-
--markdown Output result as markdown
32-
--offset Page number
26+
Options
27+
--dryRun Do input validation for a command and exit 0 when input is ok
28+
--help Print this help
29+
--json Output result as json
30+
--limit Maximum number of dependencies returned
31+
--markdown Output result as markdown
32+
--offset Page number
3333
34-
Examples
35-
socket dependencies --limit 20 --offset 10"
36-
`
34+
Examples
35+
socket dependencies --limit 20 --offset 10"
36+
`
3737
)
3838
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3939
"

src/commands/diff-scan/cmd-diff-scan-get.test.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ describe('socket diff-scan get', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Get a diff scan for an organization
22-
23-
Usage
24-
$ socket diff-scan get <org slug> --before=<before> --after=<after>
25-
26-
This command displays the package changes between two scans. The full output
27-
can be pretty large depending on the size of your repo and time range. It is
28-
best stored to disk to be further analyzed by other tools.
29-
30-
Options
31-
--after The scan ID of the head scan
32-
--before The scan ID of the base scan
33-
--depth Max depth of JSON to display before truncating, use zero for no limit (without --json/--file)
34-
--dryRun Do input validation for a command and exit 0 when input is ok
35-
--file Path to a local file where the output should be saved. Use \`-\` to force stdout.
36-
--help Print this help.
37-
--json Output result as json. This can be big. Use --file to store it to disk without truncation.
38-
39-
Examples
40-
$ socket diff-scan get FakeCorp --before=aaa0aa0a-aaaa-0000-0a0a-0000000a00a0 --after=aaa1aa1a-aaaa-1111-1a1a-1111111a11a1"
41-
`
21+
"Get a diff scan for an organization
22+
23+
Usage
24+
$ socket diff-scan get <org slug> --before=<before> --after=<after>
25+
26+
This command displays the package changes between two scans. The full output
27+
can be pretty large depending on the size of your repo and time range. It is
28+
best stored to disk to be further analyzed by other tools.
29+
30+
Options
31+
--after The scan ID of the head scan
32+
--before The scan ID of the base scan
33+
--depth Max depth of JSON to display before truncating, use zero for no limit (without --json/--file)
34+
--dryRun Do input validation for a command and exit 0 when input is ok
35+
--file Path to a local file where the output should be saved. Use \`-\` to force stdout.
36+
--help Print this help
37+
--json Output result as json. This can be big. Use --file to store it to disk without truncation.
38+
39+
Examples
40+
$ socket diff-scan get FakeCorp --before=aaa0aa0a-aaaa-0000-0a0a-0000000a00a0 --after=aaa1aa1a-aaaa-1111-1a1a-1111111a11a1"
41+
`
4242
)
4343
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
4444
"

src/commands/diff-scan/cmd-diff-scan.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ describe('socket diff-scan', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Diff scans related commands
21+
"Diff scans related commands
2222
23-
Usage
24-
$ socket diff-scan <command>
23+
Usage
24+
$ socket diff-scan <command>
2525
26-
Commands
27-
get Get a diff scan for an organization
26+
Commands
27+
get Get a diff scan for an organization
2828
29-
Options
30-
--dryRun Do input validation for a command and exit 0 when input is ok
31-
--help Print this help.
29+
Options
30+
--dryRun Do input validation for a command and exit 0 when input is ok
31+
--help Print this help
3232
33-
Examples
34-
$ socket diff-scan --help"
35-
`
33+
Examples
34+
$ socket diff-scan --help"
35+
`
3636
)
3737
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
3838
"

0 commit comments

Comments
 (0)