From 05510c921178d45b1489b310c592ba5fe62d3340 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Thu, 30 May 2024 11:56:17 -1000 Subject: [PATCH] test: replace custom locale test with an actual example --- test/createLocaleRedirect.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/createLocaleRedirect.test.ts b/test/createLocaleRedirect.test.ts index 9e6c169..789ac0e 100644 --- a/test/createLocaleRedirect.test.ts +++ b/test/createLocaleRedirect.test.ts @@ -121,7 +121,7 @@ it("allows for custom locale codes", async () => { acceptLanguage: "fr-fr,fr;q=0.5", }), localeOverrides: { - "fr-fr": "custom-locale", + "fr-fr": "jp", }, }; @@ -132,9 +132,7 @@ it("allows for custom locale codes", async () => { const redirect = await createLocaleRedirect(config); - expect(redirect?.headers.get("location")).toBe( - "https://example.com/custom-locale/foo", - ); + expect(redirect?.headers.get("location")).toBe("https://example.com/jp/foo"); expect(redirect?.status).toBe(302); });