mirror of https://github.com/openclaw/openclaw.git
test(cli): fix root-help descriptor mocks openclaw#57165 thanks @gumadeiras
This commit is contained in:
parent
1b892ee02a
commit
ad1dee32eb
|
|
@ -5,8 +5,10 @@ vi.mock("./core-command-descriptors.js", () => ({
|
|||
{
|
||||
name: "status",
|
||||
description: "Show status",
|
||||
hasSubcommands: false,
|
||||
},
|
||||
],
|
||||
getCoreCliCommandsWithSubcommands: () => [],
|
||||
}));
|
||||
|
||||
vi.mock("./subcli-descriptors.js", () => ({
|
||||
|
|
@ -14,8 +16,10 @@ vi.mock("./subcli-descriptors.js", () => ({
|
|||
{
|
||||
name: "config",
|
||||
description: "Manage config",
|
||||
hasSubcommands: true,
|
||||
},
|
||||
],
|
||||
getSubCliCommandsWithSubcommands: () => ["config"],
|
||||
}));
|
||||
|
||||
vi.mock("../../plugins/cli.js", () => ({
|
||||
|
|
|
|||
Loading…
Reference in New Issue