Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
ogroppo committed Jun 14, 2024
1 parent f32422c commit a572bc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/setUrlSearchParams.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ describe("setUrlSearchParams", () => {

test("relative url", () => {
expect(setUrlSearchParams("/signin")).toBe("/signin");
expect(setUrlSearchParams("/signin/", { ok: true })).toBe(
"/signin/?ok=true"
);
expect(setUrlSearchParams("/signin?")).toBe("/signin");
expect(setUrlSearchParams("/signin?in")).toBe("/signin?in");
expect(setUrlSearchParams("/signin?in#sec")).toBe("/signin?in#sec");
Expand Down

0 comments on commit a572bc9

Please sign in to comment.