So far I'm using the following approach:

1.) use dom/render-to-str
2.) use hiccup to parse the result string and select the elements of interest.

Example:

(def input (seamless/create-input {:key :text}))

(deftest render-input
   (is (= (:content (first (s/select (s/class "span-value")  (hc/as-hickory 
(hc/parse (dom/render-to-str    (om/build input {:text "test"}))))))) 
["test"])))

What's missing are some helper functions to make the tests more readable.


-- 
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.

Reply via email to