mirror of https://github.com/status-im/reagent.git
Fix entity test on Node
This commit is contained in:
parent
7a3bc4c212
commit
6eb9f4f6fb
|
@ -1078,9 +1078,16 @@
|
|||
[:custom-element.foobar "foo"]))))
|
||||
|
||||
(deftest html-entities
|
||||
(is (= "<i> </i>"
|
||||
(server/render-to-static-markup
|
||||
[:i (gstr/unescapeEntities " ")]))))
|
||||
(testing "entity numbers can be unescaped always"
|
||||
(is (= "<i> </i>"
|
||||
(server/render-to-static-markup
|
||||
[:i (gstr/unescapeEntities " ")]))))
|
||||
|
||||
(when r/is-client
|
||||
(testing "When DOM is available, all named entities can be unescaped"
|
||||
(is (= "<i> </i>"
|
||||
(server/render-to-static-markup
|
||||
[:i (gstr/unescapeEntities " ")]))))))
|
||||
|
||||
(defn context-wrapper []
|
||||
(r/create-class
|
||||
|
|
Loading…
Reference in New Issue