mirror of
https://github.com/status-im/reagent.git
synced 2025-01-14 13:54:08 +00:00
add test for cursor variadic swap!
This commit is contained in:
parent
1363e05e62
commit
e8cd105348
@ -336,6 +336,12 @@
|
|||||||
(is (= (get-in @test-atom [])
|
(is (= (get-in @test-atom [])
|
||||||
{:z 3}))
|
{:z 3}))
|
||||||
|
|
||||||
|
(reset! test-cursor {}) ;; empty map
|
||||||
|
(swap! test-cursor assoc :x 1 :y 2 :z 3 :w)
|
||||||
|
(is (= @test-cursor {:x 1 :y 2 :z 3 :w nil}))
|
||||||
|
(is (= (get-in @test-atom [:a :b :c :d])
|
||||||
|
{:x 1 :y 2 :z 3 :w nil}))
|
||||||
|
|
||||||
(is (= runs (running)))))
|
(is (= runs (running)))))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user