diff options
author | kpdecker <kpdecker@gmail.com> | 2013-07-30 11:08:46 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-07-30 11:08:46 -0500 |
commit | 4f5c05ffe9117617b652c37e313b462b9f6f12ae (patch) | |
tree | 8f8192b895abe333a937072784ce31a68047698c /spec/parser.js | |
parent | 9ca4f9c606cf562372d1123def592f27ba1a4928 (diff) | |
download | handlebars.js-4f5c05ffe9117617b652c37e313b462b9f6f12ae.zip handlebars.js-4f5c05ffe9117617b652c37e313b462b9f6f12ae.tar.gz handlebars.js-4f5c05ffe9117617b652c37e313b462b9f6f12ae.tar.bz2 |
Simplify inverse only block case
Diffstat (limited to 'spec/parser.js')
-rw-r--r-- | spec/parser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/parser.js b/spec/parser.js index 06a60db..3397105 100644 --- a/spec/parser.js +++ b/spec/parser.js @@ -108,11 +108,11 @@ describe('parser', function() { }); it('parses empty blocks with empty inverse section', function() { - ast_for("{{#foo}}{{^}}{{/foo}}").should.equal("BLOCK:\n {{ ID:foo [] }}\n PROGRAM:\n {{^}}\n"); + ast_for("{{#foo}}{{^}}{{/foo}}").should.equal("BLOCK:\n {{ ID:foo [] }}\n PROGRAM:\n"); }); it('parses empty blocks with empty inverse (else-style) section', function() { - ast_for("{{#foo}}{{else}}{{/foo}}").should.equal("BLOCK:\n {{ ID:foo [] }}\n PROGRAM:\n {{^}}\n"); + ast_for("{{#foo}}{{else}}{{/foo}}").should.equal("BLOCK:\n {{ ID:foo [] }}\n PROGRAM:\n"); }); it('parses non-empty blocks with empty inverse section', function() { |