@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 595 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { museApprovalChoices } from "./protocol.ts";
4
5 describe("Muse approval choices", () => {
6 it("keeps denied and abort separate when Muse offers both", () => {
7 const choices = museApprovalChoices({
8 availableChoices: [
9 { choiceId: "deny", label: "Deny", decision: "denied", scope: "once" },
10 { choiceId: "abort", label: "Stop", decision: "abort", scope: "once" },
11 ],
12 });
13 expect(choices.get("decline")?.choiceId).toBe("deny");
14 expect(choices.get("cancel")?.choiceId).toBe("abort");
15 });
16 });