The best way to control Claude Code, Codex and more from any computer or phone

main
ts 12 lines 364 Bytes
Raw
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 });