mirror of
https://github.com/status-im/reagent.git
synced 2025-02-19 07:17:22 +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})
|
||||
rstate (reaction (:val @state))
|
||||
r1 (run!
|
||||
(assert (not= @rstate 13) "fail"))]
|
||||
(when (= @rstate 13)
|
||||
(throw (ex-info "fail" nil))))]
|
||||
(swap! state assoc :val 13)
|
||||
(is (thrown? :default
|
||||
(r/flush)))
|
||||
|
@ -47,7 +47,6 @@
|
||||
(when (and isClient
|
||||
(not (:really-simple-test @tests-done)))
|
||||
(swap! tests-done assoc :really-simple-test true)
|
||||
(js/console.log "really simple")
|
||||
(let [ran (r/atom 0)
|
||||
really-simple (fn []
|
||||
(swap! ran inc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user