mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-01 04:11:03 +00:00
test(cli): fix root-help descriptor mocks openclaw#57165 thanks @gumadeiras
This commit is contained in:
@@ -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", () => ({
|
||||
|
||||
Reference in New Issue
Block a user