Domain degisikligi: fristy.net -> fristy.dev
CI / Code Health (pull_request) Successful in 22s
CI / Lint, Test & Build (pull_request) Successful in 46s
CI / Code Health (push) Successful in 25s
CI / Lint, Test & Build (push) Successful in 54s
Deploy / Build & Push Image (push) Successful in 56s
Deploy / Trigger Deploy (push) Successful in 1s

This commit was merged in pull request #4.
This commit is contained in:
fristy committed 2026-10-15 21:48:52 +03:00
1 parent 0c30c18e24
commit ff18fc353d
17 files changed
+40 -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");
});
});