diff options
Diffstat (limited to 'spec/parser.js')
-rw-r--r-- | spec/parser.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/parser.js b/spec/parser.js index 34f6a1d..131160a 100644 --- a/spec/parser.js +++ b/spec/parser.js @@ -1,4 +1,4 @@ -/*global Handlebars */ +/*global Handlebars, shouldThrow */ describe('parser', function() { if (!Handlebars.print) { return; @@ -147,6 +147,9 @@ describe('parser', function() { it('parses a standalone inverse section', function() { equals(ast_for("{{^foo}}bar{{/foo}}"), "BLOCK:\n {{ ID:foo [] }}\n {{^}}\n CONTENT[ 'bar' ]\n"); }); + it('parses a standalone inverse section', function() { + equals(ast_for("{{else foo}}bar{{/foo}}"), "BLOCK:\n {{ ID:foo [] }}\n {{^}}\n CONTENT[ 'bar' ]\n"); + }); it("raises if there's a Parse error", function() { shouldThrow(function() { |