diff --git a/src/helpers/setUrlSearchParams.test.ts b/src/helpers/setUrlSearchParams.test.ts index 7bdf128..e1c46cf 100644 --- a/src/helpers/setUrlSearchParams.test.ts +++ b/src/helpers/setUrlSearchParams.test.ts @@ -13,6 +13,7 @@ describe("setUrlSearchParams", () => { expect(setUrlSearchParams("/signin/", { ok: true })).toBe( "/signin/?ok=true" ); + expect(setUrlSearchParams("/signin/", {})).toBe("/signin/"); expect(setUrlSearchParams("/signin?")).toBe("/signin"); expect(setUrlSearchParams("/signin?in")).toBe("/signin?in"); expect(setUrlSearchParams("/signin?in#sec")).toBe("/signin?in#sec");