summaryrefslogtreecommitdiffstats
path: root/spec/parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/parser.js')
-rw-r--r--spec/parser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/parser.js b/spec/parser.js
index 3d3dccf..6f5a660 100644
--- a/spec/parser.js
+++ b/spec/parser.js
@@ -58,6 +58,10 @@ describe('parser', function() {
equals(ast_for("{{foo false}}"), "{{ PATH:foo [BOOLEAN{false}] }}\n");
});
+ it('parses mustaches with undefined and null parameters', function() {
+ equals(ast_for("{{foo undefined null}}"), "{{ PATH:foo [UNDEFINED, NULL] }}\n");
+ });
+
it('parses mutaches with DATA parameters', function() {
equals(ast_for("{{foo @bar}}"), "{{ PATH:foo [@PATH:bar] }}\n");
});