From f78116e346f9ce952c027fb6e65eb928e6900f27 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 23 Mar 2023 15:46:25 +0200 Subject: [PATCH] Test fragment --- test/cljs/reitit/frontend/core_test.cljs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cljs/reitit/frontend/core_test.cljs b/test/cljs/reitit/frontend/core_test.cljs index 710c4e98..541d2b84 100644 --- a/test/cljs/reitit/frontend/core_test.cljs +++ b/test/cljs/reitit/frontend/core_test.cljs @@ -232,6 +232,10 @@ (is (= "foo?bar=1" (rf/update-path-query-params "foo" assoc :bar 1))) + (testing "Keep fragment" + (is (= "foo?bar=1&zzz=2#aaa" + (rf/update-path-query-params "foo?bar=1#aaa" assoc :zzz 2)))) + (is (= "foo?asd=1&bar=1" (rf/update-path-query-params "foo?asd=1" assoc :bar 1)))