Skip to content

Commit

Permalink
Assert null value render
Browse files Browse the repository at this point in the history
It was not being asserted anywhere else, and I was suspecting that
PR #552 was changing current (and correct) behaviour.
  • Loading branch information
dasilvacontin committed Mar 15, 2016
1 parent a25a671 commit 22b7515
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/_files/escaped.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: function () {
return "Bear > Shark";
},
symbol: null,
entities: "&quot; \"'<>`=/"
})
2 changes: 1 addition & 1 deletion test/_files/escaped.mustache
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h1>{{title}}</h1>
<h1>{{title}}{{symbol}}</h1>
And even {{entities}}, but not {{{entities}}}.
3 changes: 2 additions & 1 deletion test/_files/unescaped.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
({
title: function () {
return "Bear > Shark";
}
},
symbol: null
})
2 changes: 1 addition & 1 deletion test/_files/unescaped.mustache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<h1>{{{title}}}</h1>
<h1>{{{title}}}{{{symbol}}}</h1>

0 comments on commit 22b7515

Please sign in to comment.