fix: filters break when argument contains [()|, fixes #89

This commit is contained in:
harttle
2019-02-24 04:48:42 +08:00
parent 279458c670
commit e977669118
10 changed files with 2100 additions and 2092 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ describe('error', function () {
}
})
})
it('should throw RenderError when filter not defined', async function () {
it('should throw ParseError when filter not defined', async function () {
const err = await expect(strictEngine.parseAndRender('{{1 | a}}')).be.rejected
expect(err).to.have.property('name', 'ParseError')
expect(err.message).to.contain('undefined filter: a')