Skip to content

Commit

Permalink
adding regression test for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed May 26, 2013
1 parent 2e5d3cd commit cca9ff9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mustache-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@
""
(mustache-render "{{! whatever}}" context)))))

(ert-deftest mustache-test-after-comment ()
"Ensure we render tags after comments.
Regression test for https://github.com/Wilfred/mustache.el/issues/4."
(let ((context (ht ("b" "hello"))))
(should
(equal
"hello"
(mustache-render
"{{!<script src=\"somescript.js\" async=\"async\"}}{{b}}" context)))))

(ert-deftest mustache-test-partial ()
(let ((mustache-partial-paths (list default-directory)))
(should
Expand Down

0 comments on commit cca9ff9

Please sign in to comment.