         "Force rendered")
 
 
-   ;; Children with force-render
+    ;; Children with force-render
 
     (view/render-component c {} [:div "div"])
-    (is (= 1 (count (view/children c))))
-    (is (= :div (ffirst (view/children c))))
+    (is (= 1 (count (view/children c)))
+        "Has one child")
+    (is (= :div (ffirst (view/children c)))
+        "Read child")
 
     (view/render-component c {} [:p "Paragraph"])
-    (is (= :p (ffirst (view/children c))))
+    (is (= :p (ffirst (view/children c)))
+        "New child - force render")
 
     ;; Children with ordinary render
 
     (render nil [:span "Span"])
-    (is (= :span (ffirst (view/children c))))
+    (is (= :span (ffirst (view/children c)))
+        "New child - normal render")
 
 
     ;; Ref
     (is (= "bold" (-> c
                       (view/react-ref "apple-statement-of-courage")
                       .-style
-                      .-fontWeight)))))
+                      .-fontWeight))
+        "Read react ref")))
 
 (defn validate-transition
   "Ensure state/props transition from old to new value correctly"
-  [props-or-state
-   initial-val
-   before-val
-   after-val
-   log]
+  [log props-or-state [initial-val before-val after-val]]
   (let [_ nil]
-    ;; ensure props, prev-state, prev-props, next-state, next-props
-    ;; are supplied accurately in correct locations
     (case props-or-state
       :props (are [method-name val]
                (= val [(get-in log [method-name :props])

        "State has changed")
    (is (= 2 @render-count)
        "Component was rendered")

    (is (= "red" (:color (view/props c)))
        "Read props")



               :get-initial-state [_ _ _]
               :component-will-mount [initial-val _ _]
               :should-component-update [before-val _ after-val]
               :component-will-update [before-val _ after-val]
               :render [after-val _ _]
               :component-did-update [after-val before-val _]))))

(deftest lifecycle-transitions
  (let [el (js/document.body.appendChild (doto (js/document.createElement "div")
                                           (.setAttribute "id" "apple")))
        render #(js/ReactDOM.render (apple %1 nil) el)
