mirror of https://github.com/status-im/reagent.git
Merge branch 'revert-128' of https://github.com/moskvax/reagent into moskvax-revert-128
This commit is contained in:
commit
b973a873fc
|
@ -355,6 +355,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)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,8 @@
|
||||||
(is (= (swap! a update-in [:k] inc)
|
(is (= (swap! a update-in [:k] inc)
|
||||||
(swap! b update-in [:k] inc)))
|
(swap! b update-in [:k] inc)))
|
||||||
(is (= @a @b {:k 2}))
|
(is (= @a @b {:k 2}))
|
||||||
|
(is (= (swap! a assoc :k 3 :l 4 :m 7 :n 8 :o)
|
||||||
|
(swap! b assoc :k 3 :l 4 :m 7 :n 8 :o)))
|
||||||
(is (= (reset! a 23)
|
(is (= (reset! a 23)
|
||||||
(reset! b 23)))
|
(reset! b 23)))
|
||||||
(is (= @a @b))
|
(is (= @a @b))
|
||||||
|
|
Loading…
Reference in New Issue