fix: find variable in parent scope (strict_variables)

This commit is contained in:
harttle
2016-11-08 21:01:25 +08:00
parent fd9fed154c
commit 295eee8134
5 changed files with 50 additions and 21 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ describe('error', function() {
return engine.parseAndRender(src).catch(function(err) {
expect(err.name).to.equal('ParseError');
expect(err.input).to.equal('{% -a %}');
expect(err.line).to.equal(3);
expect(err.line).to.equal(3)
expect(err.stack).to.contain('From AssertionError: tag -a not found');
});
});
it('should throw correct error info for files', function() {