Просмотр исходного кода

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 лет назад
Родитель
Сommit
7e83df9b05
4 измененных файлов: 5 добавлений и 3 удалений
  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 Просмотреть файл

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

+ 1
- 1
test/_files/escaped.mustache Просмотреть файл

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

+ 2
- 1
test/_files/unescaped.js Просмотреть файл

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

+ 1
- 1
test/_files/unescaped.mustache Просмотреть файл

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

Загрузка…
Отмена
Сохранить