summaryrefslogtreecommitdiffstats
path: root/spec/parser.js
diff options
context:
space:
mode:
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() {