Skip to content

Commit

Permalink
Add test for map key local variable resolution (#160). (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynaghk authored and r0man committed Mar 26, 2017
1 parent 1b7a190 commit 8377b21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/sablono/core_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,3 +1315,10 @@
:attributes
{:style "margin-left:2rem;"}
:content []}))))

(deftest test-issue-160
(let [k :data-foo]
(is (= (html-data [:div {k "bar"}])
{:tag :div
:attributes {:data-foo "bar"}
:content []}))))

0 comments on commit 8377b21

Please sign in to comment.