@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, 03:37 UTC

main
ts 11 lines 437 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { hashTelemetryId, isTelemetryIdHash } from "./telemetryId.ts";
4
5 describe("telemetry ids", () => {
6 it("accepts only hashes, never a raw id", () => {
7 expect(isTelemetryIdHash(hashTelemetryId("user_connect"))).toBe(true);
8 expect(isTelemetryIdHash("user_connect")).toBe(false);
9 expect(isTelemetryIdHash(hashTelemetryId("x").toUpperCase())).toBe(false);
10 });
11 });