Skip to content

Commit

Permalink
test: exception on invalid JS
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Nov 6, 2016
1 parent 8250ef1 commit 9d51a06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/dot.test.js
Expand Up @@ -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('<div>{{= foo + }}</div>');
});
});
});
});

0 comments on commit 9d51a06

Please sign in to comment.