       (get-rendered [_] react-element)
       (get-props [_] (.-props react-element)))))
 
+(defn -extract-m [tests]
+  (if (map? (first tests))
+    [(first tests) (rest tests)]
+    [nil tests]
+    )
+  )
+
+(defn rendered [component value & tests]
+  (let [[m tests] (-extract-m tests)
+        state (setup-state value)]
+    (binding [om/*instrument* -instrument]
+      (let [rendered-comp (rendered-component component state m)]
+        (test-predicates tests rendered-comp {:in "rendered component"})
+        ))
+    )
+  )
+
 (defn child-nodes [component]
   (->
    (get-node component)

    )
  )

(defn multiple-components? [component]
  (sequential? component)
  )

(declare display-children)

(defn display-child

     )
  )

(defn tag-name [component]
  (->
   (get-node component)
