diff options
Diffstat (limited to 'spec/builtins.js')
-rw-r--r-- | spec/builtins.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/builtins.js b/spec/builtins.js index 140f5f5..401e789 100644 --- a/spec/builtins.js +++ b/spec/builtins.js @@ -15,8 +15,11 @@ describe('builtin helpers', function() { "if with non-empty array shows the contents"); shouldCompileTo(string, {goodbye: [], world: "world"}, "cruel world!", "if with empty array does not show the contents"); - shouldCompileTo(string, {goodbye: 0, world: "world"}, "GOODBYE cruel world!", - "if with zero does show the contents"); + shouldCompileTo(string, {goodbye: 0, world: "world"}, "cruel world!", + "if with zero does not show the contents"); + shouldCompileTo("{{#if goodbye includeZero=true}}GOODBYE {{/if}}cruel {{world}}!", + {goodbye: 0, world: "world"}, "GOODBYE cruel world!", + "if with zero does not show the contents"); }); it("if with function argument", function() { |