diff --git a/src/helpers/setUrlSearchParams.test.ts b/src/helpers/setUrlSearchParams.test.ts index 1a4ba0c..7bdf128 100644 --- a/src/helpers/setUrlSearchParams.test.ts +++ b/src/helpers/setUrlSearchParams.test.ts @@ -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");