summaryrefslogtreecommitdiffstats
path: root/spec/builtins.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-08-15 10:29:37 -0500
committerkpdecker <kpdecker@gmail.com>2013-08-15 10:29:37 -0500
commit534d0ebcc3c242b539b2c37a54dbae8d81255eca (patch)
tree9df63813be6b9fa7d11dbd9711d7ade53580ef8e /spec/builtins.js
parent564afab2785b683fa51962129b04f7f1e20d0154 (diff)
downloadhandlebars.js-534d0ebcc3c242b539b2c37a54dbae8d81255eca.zip
handlebars.js-534d0ebcc3c242b539b2c37a54dbae8d81255eca.tar.gz
handlebars.js-534d0ebcc3c242b539b2c37a54dbae8d81255eca.tar.bz2
Add test case
Diffstat (limited to 'spec/builtins.js')
-rw-r--r--spec/builtins.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/builtins.js b/spec/builtins.js
index 4379725..a29616f 100644
--- a/spec/builtins.js
+++ b/spec/builtins.js
@@ -20,6 +20,8 @@ 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");
});
it("if with function argument", function() {