Skip to content

Commit 5fa0548

Browse files
committed
polish more
1 parent 184674b commit 5fa0548

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/commands/repos/cmd-repos-create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('socket repos create', async () => {
7272
7373
- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
7474
75-
- Repository name using --repoNam (\\x1b[31minvalid\\x1b[39m)
75+
- Repository name using --repoNam (\\x1b[31mmissing\\x1b[39m)
7676
7777
- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
7878
`)

src/commands/repos/cmd-repos-create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function run(
101101
test: repoName,
102102
message: 'Repository name using --repoNam',
103103
pass: 'ok',
104-
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
104+
fail: 'missing'
105105
},
106106
{
107107
nook: true,

src/commands/repos/cmd-repos-del.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('socket repos del', async () => {
6767
6868
- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
6969
70-
- Repository name argument (\\x1b[31minvalid\\x1b[39m)
70+
- Repository name argument (\\x1b[31mmissing\\x1b[39m)
7171
7272
- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
7373
`)

src/commands/repos/cmd-repos-del.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async function run(
7171
test: repoName,
7272
message: 'Repository name argument',
7373
pass: 'ok',
74-
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
74+
fail: 'missing'
7575
},
7676
{
7777
nook: true,

src/commands/repos/cmd-repos-update.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('socket repos update', async () => {
7272
7373
- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
7474
75-
- Repository name using --repoName (\\x1b[31minvalid\\x1b[39m)
75+
- Repository name using --repoName (\\x1b[31mmissing\\x1b[39m)
7676
7777
- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
7878
`)

src/commands/repos/cmd-repos-update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function run(
101101
test: repoName,
102102
message: 'Repository name using --repoName',
103103
pass: 'ok',
104-
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
104+
fail: 'missing'
105105
},
106106
{
107107
nook: true,

src/commands/repos/cmd-repos-view.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('socket repos view', async () => {
7070
7171
- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)
7272
73-
- Repository name using --repoName (\\x1b[31minvalid\\x1b[39m)
73+
- Repository name using --repoName (\\x1b[31mmissing\\x1b[39m)
7474
7575
- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
7676
`)

src/commands/repos/cmd-repos-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async function run(
7878
test: repoName,
7979
message: 'Repository name using --repoName',
8080
pass: 'ok',
81-
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
81+
fail: 'missing'
8282
},
8383
{
8484
nook: true,

src/commands/scan/cmd-scan-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async function run(
245245
test: targets.length,
246246
message: 'At least one TARGET (e.g. `.` or `./package.json`)',
247247
pass: 'ok',
248-
fail: 'missing'
248+
fail: 'missing (or perhaps you forgot the org slug?)'
249249
},
250250
{
251251
nook: true,
@@ -259,7 +259,7 @@ async function run(
259259
test: apiToken,
260260
message: 'This command requires an API token for access`)',
261261
pass: 'ok',
262-
fail: 'missing'
262+
fail: 'missing (try `socket login`)'
263263
}
264264
)
265265
if (wasBadInput) {

0 commit comments

Comments
 (0)