Skip to content

Commit

Permalink
Updated tests accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricemach committed Feb 11, 2011
1 parent db1055a commit 41674ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ exports.run = ->
comment 'Comment'

test 'Escaping', ->
"<h1>&lt;script&gt;alert('&quot;pwned&quot; by c&amp;a &copy;')&lt;/script&gt;</h1>" is render ->
"<h1>&lt;script&gt;alert('&quot;pwned&quot; by c&amp;a &amp;copy;')&lt;/script&gt;</h1>" is render ->
h1 h("<script>alert('\"pwned\" by c&a &copy;')</script>")

test 'Autoescaping', ->
"<h1>&lt;script&gt;alert('&quot;pwned&quot; by c&amp;a &copy;')&lt;/script&gt;</h1>" is render(
"<h1>&lt;script&gt;alert('&quot;pwned&quot; by c&amp;a &amp;copy;')&lt;/script&gt;</h1>" is render(
-> h1 "<script>alert('\"pwned\" by c&a &copy;')</script>"
autoescape: yes
)
Expand Down

0 comments on commit 41674ec

Please sign in to comment.