mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix: proper error message for filter syntax error, #610
This commit is contained in:
@@ -426,4 +426,9 @@ describe('Issues', function () {
|
||||
'2023-01-05T12:00:00+0000'
|
||||
expect(html).toEqual(expected)
|
||||
})
|
||||
it('#610 should throw missing ":" after filter name', () => {
|
||||
const engine = new Liquid()
|
||||
const fn = () => engine.parseAndRenderSync("{%- assign module = '' | split '' -%}")
|
||||
expect(fn).toThrow(/expected ":" after filter name/)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user