@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 17 lines 659 Bytes
Raw
1 import type { ServerConfig } from "@t3tools/contracts";
2 import { describe, expect, it } from "vite-plus/test";
3
4 import { resolveEnvironmentIconPickerLock } from "./EnvironmentIconPicker";
5
6 const config = { environment: { capabilities: {} } } as unknown as ServerConfig;
7
8 describe("resolveEnvironmentIconPickerLock", () => {
9 it("waits for a settings grant before allowing changes", () => {
10 expect(
11 resolveEnvironmentIconPickerLock({ serverConfig: config, operateAccess: "pending" }),
12 ).toMatch(/cannot change/);
13 expect(
14 resolveEnvironmentIconPickerLock({ serverConfig: config, operateAccess: "granted" }),
15 ).toBeNull();
16 });
17 });