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
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:
17 files changed
+40
-37
No files matched your search
@@ -13,7 +13,7 @@ function contextWith(id: string) {
|
||||
describe("GET /api/discord-app/[id]", () => {
|
||||
it("returns 400 for non-numeric ids", async () => {
|
||||
const response = await GET(
|
||||
new Request("https://fristy.net/api/discord-app/abc"),
|
||||
new Request("https://fristy.dev/api/discord-app/abc"),
|
||||
contextWith("abc"),
|
||||
);
|
||||
expect(response.status).toBe(400);
|
||||
@@ -25,7 +25,7 @@ describe("GET /api/discord-app/[id]", () => {
|
||||
vi.fn(async () => ({ ok: false, status: 404 })),
|
||||
);
|
||||
const response = await GET(
|
||||
new Request("https://fristy.net/api/discord-app/123"),
|
||||
new Request("https://fristy.dev/api/discord-app/123"),
|
||||
contextWith("123"),
|
||||
);
|
||||
expect(response.status).toBe(404);
|
||||
@@ -39,7 +39,7 @@ describe("GET /api/discord-app/[id]", () => {
|
||||
}),
|
||||
);
|
||||
const response = await GET(
|
||||
new Request("https://fristy.net/api/discord-app/123"),
|
||||
new Request("https://fristy.dev/api/discord-app/123"),
|
||||
contextWith("123"),
|
||||
);
|
||||
expect(response.status).toBe(502);
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
+1
-1
@@ -17,7 +17,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
metadataBase: new URL(SITE_URL),
|
||||
title: {
|
||||
default: dict.meta.title,
|
||||
template: "%s · fristy.net",
|
||||
template: "%s · fristy.dev",
|
||||
},
|
||||
description: dict.meta.description,
|
||||
openGraph: {
|
||||
|
||||
Reference in new issue
Block a user