From be45ec0aa70743693530694844999e3edc7675be Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Fri, 13 Oct 2017 11:18:32 +0300 Subject: [PATCH] Better style prop test --- test/reagenttest/testreagent.cljs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/reagenttest/testreagent.cljs b/test/reagenttest/testreagent.cljs index c774154..84b0fab 100644 --- a/test/reagenttest/testreagent.cljs +++ b/test/reagenttest/testreagent.cljs @@ -8,8 +8,6 @@ [reagent.dom.server :as server] [reagent.impl.util :as util])) -(def node? (exists? js/require)) - (def tests-done (atom {})) (defn fixture [f] @@ -1024,8 +1022,6 @@ (is (= @node nil)))) (deftest style-property-names-are-camel-cased - (is (= (if node? - "
foo
" - "
foo
") - (server/render-to-static-markup - [:div {:style {:text-align "center"}} "foo"])))) + (is (re-find #"
foo
" + (server/render-to-static-markup + [:div {:style {:text-align "center"}} "foo"]))))