diff --git a/test/dot.test.js b/test/dot.test.js index 28ea749..870d92e 100644 --- a/test/dot.test.js +++ b/test/dot.test.js @@ -60,4 +60,11 @@ describe('doT', function(){ }); }); + describe('invalid JS in templates', function() { + it('should throw exception', function() { + assert.throws(function() { + var fn = doT.template('
{{= foo + }}
'); + }); + }); + }); });