mirror of https://github.com/status-im/reagent.git
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:
parent
2293c88f10
commit
a979a36a92
|
@ -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
|
||||
|
|
|
@ -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])]))
|
||||
|
|
Loading…
Reference in New Issue