Domain degisikligi: fristy.net -> fristy.dev
CI / Code Health (pull_request) Successful in 24s
CI / Lint, Test & Build (pull_request) Failing after 25s

This commit is contained in:
fristy committed 2026-10-15 21:46:01 +03:00
1 parent 0c30c18e24
commit 873635f5f8
18 files changed
+165 -37

No files matched your search

+5 -5
View File
@@ -17,11 +17,11 @@ function requestWith(url: string) {
describe("GET /api/game/[id]", () => {
it("returns 400 for non-numeric ids", async () => {
const response = await GET(
requestWith("https://fristy.net/api/game/abc"),
requestWith("https://fristy.dev/api/game/abc"),
contextWith("abc"),
);
expect(response.status).toBe(400);
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
});
it("returns 404 when no profile resolves", async () => {
@@ -30,7 +30,7 @@ describe("GET /api/game/[id]", () => {
vi.fn(async () => ({ ok: false, status: 404 })),
);
const response = await GET(
requestWith("https://fristy.net/api/game/123"),
requestWith("https://fristy.dev/api/game/123"),
contextWith("123"),
);
expect(response.status).toBe(404);
@@ -44,10 +44,10 @@ describe("GET /api/game/[id]", () => {
}),
);
const response = await GET(
requestWith("https://fristy.net/api/game/123"),
requestWith("https://fristy.dev/api/game/123"),
contextWith("123"),
);
expect(response.status).toBe(502);
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
});
});