Add test to validate that style properties with dashes work

This commit is contained in:
Juho Teperi 2017-03-11 01:56:39 +02:00
parent 50b5ad30e5
commit 4ea070d15a
1 changed files with 5 additions and 0 deletions

View File

@ -1019,3 +1019,8 @@
(r/flush)
(is (= @spy 0))))
(is (= @node nil))))
(deftest style-property-names-are-camel-cased
(is (= "<div style=\"text-align:center;\">foo</div>"
(server/render-to-static-markup
[:div {:style {:text-align "center"}} "foo"]))))