Files
clawdbot/src/tui/commands.test.ts
2026-01-06 08:41:04 +01:00

17 lines
423 B
TypeScript

import { describe, expect, it } from "vitest";
import { parseCommand } from "./commands.js";
describe("tui slash commands", () => {
it("treats /elev as an alias for /elevated", () => {
expect(parseCommand("/elev on")).toEqual({ name: "elevated", args: "on" });
});
it("normalizes alias case", () => {
expect(parseCommand("/ELEV off")).toEqual({
name: "elevated",
args: "off",
});
});
});