Skip to content

Commit

Permalink
test: replace custom locale test with an actual example
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 30, 2024
1 parent 08521b2 commit 05510c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/createLocaleRedirect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
};

Expand All @@ -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);
});

Expand Down

0 comments on commit 05510c9

Please sign in to comment.