Bladeren bron

Assert `null` value render

It was not being asserted anywhere else, and I was suspecting that
PR #552 was changing current (and correct) behaviour.
tags/v2.3.0
David da Silva 10 jaren geleden
bovenliggende
commit
7e83df9b05
4 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. +1
    -0
      test/_files/escaped.js
  2. +1
    -1
      test/_files/escaped.mustache
  3. +2
    -1
      test/_files/unescaped.js
  4. +1
    -1
      test/_files/unescaped.mustache

+ 1
- 0
test/_files/escaped.js Bestand weergeven

@@ -2,5 +2,6 @@
title: function () {
return "Bear > Shark";
},
symbol: null,
entities: "&quot; \"'<>`=/"
})

+ 1
- 1
test/_files/escaped.mustache Bestand weergeven

@@ -1,2 +1,2 @@
<h1>{{title}}</h1>
<h1>{{title}}{{symbol}}</h1>
And even {{entities}}, but not {{{entities}}}.

+ 2
- 1
test/_files/unescaped.js Bestand weergeven

@@ -1,5 +1,6 @@
({
title: function () {
return "Bear > Shark";
}
},
symbol: null
})

+ 1
- 1
test/_files/unescaped.mustache Bestand weergeven

@@ -1 +1 @@
<h1>{{{title}}}</h1>
<h1>{{{title}}}{{{symbol}}}</h1>

Laden…
Annuleren
Opslaan