Open History to see the last commit
1import * as NodeAssert from "node:assert/strict";
2
3import { describe, it } from "vite-plus/test";
4
5import * as OpenCodeRuntime from "./OpenCodeRuntime.ts";
6
7describe("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});