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)))