@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 528 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { parseActiveThreadPath } from "./hardwareKeyboardCommands";
4
5 describe("parseActiveThreadPath", () => {
6 it("decodes route components", () => {
7 expect(parseActiveThreadPath("/threads/local%20machine/thread%2Fone/review")).toEqual({
8 environmentId: "local machine",
9 threadId: "thread/one",
10 });
11 });
12
13 it("ignores malformed encoded route components", () => {
14 expect(parseActiveThreadPath("/threads/%E0%A4%A/thread-1")).toBeNull();
15 });
16 });