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
| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { isLegalDocumentUrl } from "./legal-document-url"; |
| 4 | |
| 5 | describe("isLegalDocumentUrl", () => { |
| 6 | it.each(["https://example.com/legal", "javascript:alert(1)"])( |
| 7 | "rejects a URL outside the legal-document allowlist: %s", |
| 8 | (url) => { |
| 9 | expect(isLegalDocumentUrl(url)).toBe(false); |
| 10 | }, |
| 11 | ); |
| 12 | }); |