summaryrefslogtreecommitdiffstats
path: root/spec/basic.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-04-13 21:18:53 -0500
committerkpdecker <kpdecker@gmail.com>2015-04-13 21:18:53 -0500
commitdfd141cd3566c52c271c7470ff690fa6ace6f548 (patch)
tree0729215dc4afd922dc8b7b9e672f6a2a194f0c21 /spec/basic.js
parent37a664bf6438bde0ee827a68da4cbd95a21cf52e (diff)
downloadhandlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.zip
handlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.tar.gz
handlebars.js-dfd141cd3566c52c271c7470ff690fa6ace6f548.tar.bz2
Allow undefined and null in helper names
Diffstat (limited to 'spec/basic.js')
-rw-r--r--spec/basic.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/basic.js b/spec/basic.js
index 11002e4..e634d41 100644
--- a/spec/basic.js
+++ b/spec/basic.js
@@ -74,6 +74,20 @@ describe("basic context", function() {
}
},
'true true object');
+ shouldCompileTo('{{undefined}}',
+ {
+ undefined: function() {
+ return 'undefined!';
+ }
+ },
+ 'undefined!');
+ shouldCompileTo('{{null}}',
+ {
+ null: function() {
+ return 'null!';
+ }
+ },
+ 'null!');
});
it("newlines", function() {