Domain degisikligi: fristy.net -> fristy.dev

This commit is contained in:
fristy committed 2026-10-15 21:43:19 +03:00
1 parent ed149ded52
commit b98acd0cde
18 files changed
+165 -37

No files matched your search

+3 -3
View File
@@ -29,7 +29,7 @@ describe("jsonErrorWithCors", () => {
const response = jsonErrorWithCors({ error: "Nope" }, 404);
expect(response.status).toBe(404);
expect(response.headers.get("Cache-Control")).toContain("s-maxage=60");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
await expect(response.json()).resolves.toEqual({ error: "Nope" });
});
});
@@ -37,7 +37,7 @@ describe("jsonWithCors", () => {
it("sets cache and CORS headers", async () => {
const response = jsonWithCors({ ok: true }, 3600);
expect(response.headers.get("Cache-Control")).toContain("s-maxage=3600");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
await expect(response.json()).resolves.toEqual({ ok: true });
});
@@ -48,6 +48,6 @@ describe("jsonWithCors", () => {
it("falls back to production for untrusted origins", async () => {
const response = jsonWithCors({ ok: true }, 3600, "https://evil.example");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
});
});