feat(tui): add /elev alias

This commit is contained in:
Peter Steinberger
2026-01-06 08:41:04 +01:00
parent 882048d90b
commit 952657d55c
4 changed files with 36 additions and 1 deletions

16
src/tui/commands.test.ts Normal file
View File

@@ -0,0 +1,16 @@
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",
});
});
});