Skip to content

Commit

Permalink
Add test case for issue #63, input tag without type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
r0man committed May 25, 2015
1 parent 120dcf5 commit 454fad9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sablono/core_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@
[:li "bar"]
[:li "baz"])])))

(deftest test-input
(is (= (html-vec [:input])
[:input {}])))

(deftest test-input-with-extra-atts
(is (= (html-vec [:input {:class "classy"}])
[:input {:class "classy"}])))

(deftest test-hidden-field
(is (= (html-vec (html/hidden-field :foo "bar"))
[:input {:type "hidden" :name "foo" :id "foo" :value "bar"}])))
Expand Down

0 comments on commit 454fad9

Please sign in to comment.