mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:10:43 +00:00
fix: align docs with cli and provider surfaces
This commit is contained in:
@@ -29,6 +29,15 @@ describe("command-tree", () => {
|
||||
expect(program.commands.map((command) => command.name())).toEqual(["beta"]);
|
||||
});
|
||||
|
||||
it("removes by command alias", () => {
|
||||
const program = new Command();
|
||||
program.command("alpha").alias("a");
|
||||
program.command("beta");
|
||||
|
||||
expect(removeCommandByName(program, "a")).toBe(true);
|
||||
expect(program.commands.map((command) => command.name())).toEqual(["beta"]);
|
||||
});
|
||||
|
||||
it("returns false when name does not exist", () => {
|
||||
const program = new Command();
|
||||
program.command("alpha");
|
||||
|
||||
Reference in New Issue
Block a user