If I include my om app I get:
Error: Assert failed: No target specified to om.core/root
(not (nil? target))
This is expected since I haven't included a html page. The question is how to
test my components without bootstraping the complete app.
Example:
(defn component [app-state _ opts]
(reify
om/IRender
(render [_]
(apply dom/ul #js {:className "button-list" :style #js {:display
"inline"}} (build-button-list (:index app-state)
(:items app-state)
(:id opts))))))
What I would like to do is just test if this component creates the expected
html.
Is this possible ?
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.