mirror of
https://github.com/status-im/reagent.git
synced 2025-02-20 23:58:19 +00:00
Make new tests pass in production mode
This commit is contained in:
parent
8e1f671d10
commit
00bfb8ed01
@ -401,7 +401,8 @@
|
|||||||
state (r/atom {:val 1})
|
state (r/atom {:val 1})
|
||||||
rstate (reaction (:val @state))
|
rstate (reaction (:val @state))
|
||||||
r1 (run!
|
r1 (run!
|
||||||
(assert (not= @rstate 13) "fail"))]
|
(when (= @rstate 13)
|
||||||
|
(throw (ex-info "fail" nil))))]
|
||||||
(swap! state assoc :val 13)
|
(swap! state assoc :val 13)
|
||||||
(is (thrown? :default
|
(is (thrown? :default
|
||||||
(r/flush)))
|
(r/flush)))
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
(when (and isClient
|
(when (and isClient
|
||||||
(not (:really-simple-test @tests-done)))
|
(not (:really-simple-test @tests-done)))
|
||||||
(swap! tests-done assoc :really-simple-test true)
|
(swap! tests-done assoc :really-simple-test true)
|
||||||
(js/console.log "really simple")
|
|
||||||
(let [ran (r/atom 0)
|
(let [ran (r/atom 0)
|
||||||
really-simple (fn []
|
really-simple (fn []
|
||||||
(swap! ran inc)
|
(swap! ran inc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user