@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 15 lines 448 Bytes
Raw
1 import * as NodeAssert from "node:assert/strict";
2
3 import { describe, it } from "vite-plus/test";
4
5 import * as OpenCodeRuntime from "./OpenCodeRuntime.ts";
6
7 describe("toOpenCodePermissionReply", () => {
8 it.each([
9 ["accept", "once"],
10 ["acceptForSession", "always"],
11 ["decline", "reject"],
12 ] as const)("maps %s to %s", (decision, reply) => {
13 NodeAssert.equal(OpenCodeRuntime.toOpenCodePermissionReply(decision), reply);
14 });
15 });