mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 21:34:29 +00:00
Only test error boundary on browser
This commit is contained in:
parent
05af403f10
commit
922afe9425
@ -982,7 +982,7 @@
|
|||||||
(-> e :warn first))))))))
|
(-> e :warn first))))))))
|
||||||
|
|
||||||
(deftest test-error-boundary
|
(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)
|
(let [error (r/atom nil)
|
||||||
error-boundary (fn error-boundary [comp]
|
error-boundary (fn error-boundary [comp]
|
||||||
(r/create-class
|
(r/create-class
|
||||||
|
Loading…
x
Reference in New Issue
Block a user