master
Josha von Gizycki 5 years ago
parent 341ce88abe
commit 727478a81b

@ -228,7 +228,17 @@
(first (first
(nthrest (nthrest
(render-widgets def {} {}) (render-widgets def {} {})
2))))))) 2))))))
(testing "input-widget uses :attr"
(let [def {:fields {:foor-id {:attrs {:autofocus true}}}}
rendered-input (-> (render-widgets def {} {})
(nthrest 2)
first
(nthrest 2)
first)
input-attrs (second rendered-input)]
(contains? input-attrs :autofocus)
(is (= true (:autofocus input-attrs))))))
(deftest to-form-is-used (deftest to-form-is-used
(testing "data passed to fo-form is taken from values" (testing "data passed to fo-form is taken from values"

Loading…
Cancel
Save