Drop test for key warning

React will sometimes warn, even if we don't.

Also, small fix for async demo.
This commit is contained in:
Dan Holmsand 2015-08-19 10:14:02 +02:00
parent 2293c88f10
commit a979a36a92
2 changed files with 1 additions and 10 deletions

View File

@ -61,7 +61,7 @@
"number of color divs " @ncolors
[:input {:type "range" :min 0 :max 500
:value @ncolors
:on-change #(reset! ncolors (-> % .-target .-value))}]])
:on-change #(reset! ncolors (-> % .-target .-value int))}]])
(defn color-plate [color]
[:div.color-plate

View File

@ -516,12 +516,3 @@
(rstr [:div.foo [:p.bar.foo [:b.foobar "xy"]]])))
(is (= (rstr [:div>p.bar.foo>a.foobar {:href "href"} "xy"])
(rstr [:div [:p.bar.foo [:a.foobar {:href "href"} "xy"]]]))))
(deftest test-key-warning
;; Just make sure that seq without key dont print unnecessary
;; debug messages
(r/render-to-static-markup [:div (for [x (range 5)]
[:p x])])
(r/render-to-string [:div (for [x (range 5)]
[:p x])]))