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
1 changed files with 1 additions and 1 deletions

View File

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