mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 00:41:12 +00:00
Test fragment
This commit is contained in:
parent
a558365252
commit
f78116e346
1 changed files with 4 additions and 0 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue