chore(TypeScript): fix unit tests and coverage

This commit is contained in:
harttle
2019-02-17 20:46:33 +08:00
parent fc9ebdb90f
commit aa49b4f117
8 changed files with 43 additions and 19 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ describe('LiquidOptions#trimming', function () {
})
it('should respect trim_tag_right', async function () {
const engine = new Liquid({ trim_tag_right: true })
const html = engine.parseAndRender('\t{%if true%}foo{%endif%} \n')
const html = await engine.parseAndRender('\t{%if true%}foo{%endif%} \n')
return expect(html).to.equal('\tfoo')
})
it('should not trim value', async function () {