summaryrefslogtreecommitdiffstats
path: root/spec/parser.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-07-24 23:49:16 -0500
committerkpdecker <kpdecker@gmail.com>2013-07-24 23:50:12 -0500
commitdcbc3a55a4a7c129cc9aea0ef2003c1c3c86fe29 (patch)
tree53282f8187ecb0db03506f38e800c26115204fb3 /spec/parser.js
parent497515c02fd58d46e38c872a3fbf366be5f876fe (diff)
downloadhandlebars.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.js3
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() {