mirror of https://github.com/status-im/reagent.git
Omit tests running in node
This commit is contained in:
parent
e4fee70ac2
commit
55a4b4e1df
|
@ -567,6 +567,7 @@
|
||||||
(is (= (rstr [c2]) "<div>foo</div>"))))
|
(is (= (rstr [c2]) "<div>foo</div>"))))
|
||||||
|
|
||||||
(deftest basic-with-let
|
(deftest basic-with-let
|
||||||
|
(when isClient
|
||||||
(let [n1 (atom 0)
|
(let [n1 (atom 0)
|
||||||
n2 (atom 0)
|
n2 (atom 0)
|
||||||
n3 (atom 0)
|
n3 (atom 0)
|
||||||
|
@ -584,9 +585,10 @@
|
||||||
(is (= [1 1 0] [@n1 @n2 @n3]))
|
(is (= [1 1 0] [@n1 @n2 @n3]))
|
||||||
(r/flush)
|
(r/flush)
|
||||||
(is (= [1 2 0] [@n1 @n2 @n3]))))
|
(is (= [1 2 0] [@n1 @n2 @n3]))))
|
||||||
(is (= [1 2 1] [@n1 @n2 @n3]))))
|
(is (= [1 2 1] [@n1 @n2 @n3])))))
|
||||||
|
|
||||||
(deftest with-let-destroy-only
|
(deftest with-let-destroy-only
|
||||||
|
(when isClient
|
||||||
(let [n1 (atom 0)
|
(let [n1 (atom 0)
|
||||||
n2 (atom 0)
|
n2 (atom 0)
|
||||||
c (fn []
|
c (fn []
|
||||||
|
@ -598,7 +600,7 @@
|
||||||
(with-mounted-component [c]
|
(with-mounted-component [c]
|
||||||
(fn [_ div]
|
(fn [_ div]
|
||||||
(is (= [1 0] [@n1 @n2]))))
|
(is (= [1 0] [@n1 @n2]))))
|
||||||
(is (= [1 1] [@n1 @n2]))))
|
(is (= [1 1] [@n1 @n2])))))
|
||||||
|
|
||||||
(deftest with-let-non-reactive
|
(deftest with-let-non-reactive
|
||||||
(let [n1 (atom 0)
|
(let [n1 (atom 0)
|
||||||
|
|
Loading…
Reference in New Issue