mirror of https://github.com/status-im/reagent.git
Only test error boundary on browser
This commit is contained in:
parent
05af403f10
commit
922afe9425
|
@ -982,7 +982,7 @@
|
|||
(-> e :warn first))))))))
|
||||
|
||||
(deftest test-error-boundary
|
||||
(when (>= (js/parseInt react/version) 16)
|
||||
(when (and r/is-client (>= (js/parseInt react/version) 16))
|
||||
(let [error (r/atom nil)
|
||||
error-boundary (fn error-boundary [comp]
|
||||
(r/create-class
|
||||
|
|
Loading…
Reference in New Issue