Przeglądaj źródła

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 lat temu
rodzic
commit
7e83df9b05
4 zmienionych plików z 5 dodań i 3 usunięć
  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 Wyświetl plik

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

+ 1
- 1
test/_files/escaped.mustache Wyświetl plik

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

+ 2
- 1
test/_files/unescaped.js Wyświetl plik

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

+ 1
- 1
test/_files/unescaped.mustache Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz