Skip to content

Commit 22b7515

Browse files
committed
Assert null value render
It was not being asserted anywhere else, and I was suspecting that PR #552 was changing current (and correct) behaviour.
1 parent a25a671 commit 22b7515

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

test/_files/escaped.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
title: function () {
33
return "Bear > Shark";
44
},
5+
symbol: null,
56
entities: "&quot; \"'<>`=/"
67
})

test/_files/escaped.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<h1>{{title}}</h1>
1+
<h1>{{title}}{{symbol}}</h1>
22
And even {{entities}}, but not {{{entities}}}.

test/_files/unescaped.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
({
22
title: function () {
33
return "Bear > Shark";
4-
}
4+
},
5+
symbol: null
56
})

test/_files/unescaped.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>{{{title}}}</h1>
1+
<h1>{{{title}}}{{{symbol}}}</h1>

0 commit comments

Comments
 (0)