Only test error boundary on browser

This commit is contained in:
Juho Teperi 2017-11-28 18:13:57 +02:00
parent 05af403f10
commit 922afe9425

View File

@ -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