mirror of https://github.com/status-im/reagent.git
Update cursor test
This commit is contained in:
parent
a8ea307f85
commit
02ffe6bcfa
|
@ -205,19 +205,19 @@
|
||||||
:on-dispose #(reset! disposed-cns true))]
|
:on-dispose #(reset! disposed-cns true))]
|
||||||
@cns
|
@cns
|
||||||
(is (= @res 2))
|
(is (= @res 2))
|
||||||
(is (= (+ 3 runs) (running)))
|
(is (= (+ 4 runs) (running)))
|
||||||
(is (= @count-b 1))
|
(is (= @count-b 1))
|
||||||
(is (= {:a 0 :b 0} @a-base))
|
(is (= {:a 0 :b 0} @a-base))
|
||||||
(reset! a -1)
|
(reset! a -1)
|
||||||
(is (= @res 1))
|
(is (= @res 1))
|
||||||
(is (= @disposed nil))
|
(is (= @disposed nil))
|
||||||
(is (= @count-b 2))
|
(is (= @count-b 2))
|
||||||
(is (= (+ 3 runs) (running)) "still running")
|
(is (= (+ 4 runs) (running)) "still running")
|
||||||
(is (= {:a -1 :b 0} @a-base))
|
(is (= {:a -1 :b 0} @a-base))
|
||||||
(reset! a 2)
|
(reset! a 2)
|
||||||
(is (= @res 1))
|
(is (= @res 1))
|
||||||
(is (= @disposed true))
|
(is (= @disposed true))
|
||||||
(is (= (+ 2 runs) (running)) "less running count")
|
(is (= (+ 3 runs) (running)) "less running count")
|
||||||
(is (= {:a 2 :b 0} @a-base))
|
(is (= {:a 2 :b 0} @a-base))
|
||||||
|
|
||||||
(reset! disposed nil)
|
(reset! disposed nil)
|
||||||
|
|
Loading…
Reference in New Issue