fix: incorrect error message for browser UMD bundle

This commit is contained in:
Harttle
2023-06-04 12:00:32 +08:00
parent fc42438283
commit 3a67eb7f1c
2 changed files with 17 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
const LiquidUMD = require('../../dist/liquid.browser.umd.js').Liquid
describe('browser', function () {
it('should yield unclosed output error', () => {
const engine = new LiquidUMD()
return expect(engine.parseAndRender('{{huh')).rejects.toMatchObject({
message: 'output "{{huh" not closed, line:1, col:1'
})
})
})