Fork me on GitHub
#hoplon
<
2017-05-08
>
thedavidmeister02:05:59

@ejemba i use cljs-test and just create elements and cells and test them

thedavidmeister02:05:17

(defn access-denied
 []
 (el.layouts.centred.dom/centred
   (el.logo.dom/logo :size :big)
   (h/h3 "You need to " (h/a :login! true "log in to access this page"))))

(deftest ??access-denied
 (let [a (access-denied)]
  (is (dom.traversal/is? a "div"))
  (is (dom.traversal/contains? a ".logo"))
  (is (= ["You need to log in to access this page"] (dom.traversal/find-text a "h3")))))

thedavidmeister02:05:36

dom.traversal is just some thin wrappers around jquery that i wrote