fix unless: null elseTemplates

This commit is contained in:
harttle
2016-07-19 07:38:05 +08:00
parent 2fe81af5a8
commit 698bbd75cf
4 changed files with 89 additions and 90 deletions
+1
View File
@@ -97,6 +97,7 @@ describe('tags', function() {
test('{% unless 1 %}yes{%else%}no{%endunless%}', 'no');
testThrow('{% unless 1>2 %}yes', /tag {% unless 1>2 %} not closed/);
test('{% unless 1>2 %}yes{%endunless%}', 'yes');
test('{% unless true %}{%endunless%}', '');
});
it('should support capture', function() {