diff --git a/test/reagenttest/testcursor.cljs b/test/reagenttest/testcursor.cljs index 73f64bd..0e5da31 100644 --- a/test/reagenttest/testcursor.cljs +++ b/test/reagenttest/testcursor.cljs @@ -336,6 +336,12 @@ (is (= (get-in @test-atom []) {: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)))))