The best way to control Claude Code, Codex and more from any computer or phone
| 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 | }); |