Skip to content

Commit be4d202

Browse files
committed
fix: test
1 parent 900d428 commit be4d202

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

test/plugin-help.test.ts

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@ describe("plugin-help", () => {
1818
.parse(["help"]);
1919
expect(msgs).toMatchInlineSnapshot(`
2020
[
21-
"test help ",
22-
"Show help",
23-
undefined,
21+
"test ",
2422
"USAGE:",
25-
" test help [PARAMETERS] [FLAGS]",
23+
" test <SUBCOMMAND> [OPTIONS]",
2624
undefined,
27-
"EXAMPLES:",
28-
" test help Displays help of the cli",
29-
" test -h Displays help of the cli",
30-
" test help help Displays help of the help command",
25+
"COMMANDS:",
26+
" help Show help",
3127
]
3228
`);
3329
msgs.length = 0;
@@ -54,16 +50,11 @@ describe("plugin-help", () => {
5450
.parse(["help"]);
5551
expect(msgs).toMatchInlineSnapshot(`
5652
[
57-
" help ",
58-
"Show help",
59-
undefined,
6053
"USAGE:",
61-
" help [PARAMETERS] [FLAGS]",
54+
" <CLI NAME> <SUBCOMMAND> [OPTIONS]",
6255
undefined,
63-
"EXAMPLES:",
64-
" help Displays help of the cli",
65-
" -h Displays help of the cli",
66-
" help help Displays help of the help command",
56+
"COMMANDS:",
57+
" help Show help",
6758
]
6859
`);
6960
});
@@ -76,16 +67,14 @@ describe("plugin-help", () => {
7667
.parse(["help"]);
7768
expect(msgs).toMatchInlineSnapshot(`
7869
[
79-
"[32mfoo help[39m v1.0.0",
80-
"Show help",
70+
"[32mfoo[39m v1.0.0",
71+
"foo cli",
8172
undefined,
8273
"USAGE:",
83-
" foo help [PARAMETERS] [FLAGS]",
74+
" foo <SUBCOMMAND> [OPTIONS]",
8475
undefined,
85-
"EXAMPLES:",
86-
" foo help Displays help of the cli",
87-
" foo -h Displays help of the cli",
88-
" foo help help Displays help of the help command",
76+
"COMMANDS:",
77+
" help Show help",
8978
]
9079
`);
9180
});

0 commit comments

Comments
 (0)