diff options
author | kpdecker <kpdecker@gmail.com> | 2013-07-24 23:49:16 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-07-24 23:50:12 -0500 |
commit | dcbc3a55a4a7c129cc9aea0ef2003c1c3c86fe29 (patch) | |
tree | 53282f8187ecb0db03506f38e800c26115204fb3 /spec/parser.js | |
parent | 497515c02fd58d46e38c872a3fbf366be5f876fe (diff) | |
download | handlebars.js-dcbc3a55a4a7c129cc9aea0ef2003c1c3c86fe29.zip handlebars.js-dcbc3a55a4a7c129cc9aea0ef2003c1c3c86fe29.tar.gz handlebars.js-dcbc3a55a4a7c129cc9aea0ef2003c1c3c86fe29.tar.bz2 |
Prevent nonsensical root {{^}}
Diffstat (limited to 'spec/parser.js')
-rw-r--r-- | spec/parser.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/parser.js b/spec/parser.js index 3f2a012..06a60db 100644 --- a/spec/parser.js +++ b/spec/parser.js @@ -137,6 +137,9 @@ describe('parser', function() { it("raises if there's a Parse error", function() { (function() { + ast_for("foo{{^}}bar"); + }).should.throw(/Parse error on line 1/); + (function() { ast_for("{{foo}"); }).should.throw(/Parse error on line 1/); (function() { |