mirror of https://github.com/status-im/reagent.git
In Node & CJS React, style prop doesn't end in ;
This commit is contained in:
parent
47e386d49d
commit
ef5c98eeba
|
@ -8,6 +8,8 @@
|
|||
[reagent.dom.server :as server]
|
||||
[reagent.impl.util :as util]))
|
||||
|
||||
(def node? (exists? js/require))
|
||||
|
||||
(def tests-done (atom {}))
|
||||
|
||||
(defn fixture [f]
|
||||
|
@ -1022,6 +1024,8 @@
|
|||
(is (= @node nil))))
|
||||
|
||||
(deftest style-property-names-are-camel-cased
|
||||
(is (= "<div style=\"text-align:center;\">foo</div>"
|
||||
(is (= (if node?
|
||||
"<div style=\"text-align:center\">foo</div>"
|
||||
"<div style=\"text-align:center;\">foo</div>")
|
||||
(server/render-to-static-markup
|
||||
[:div {:style {:text-align "center"}} "foo"]))))
|
||||
|
|
Loading…
Reference in New Issue