mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
feat: create trie programmatically in options
This commit is contained in:
committed by
Jun Yang
parent
8734e2e6ce
commit
befc33c4eb
@@ -19,7 +19,9 @@ describe('LiquidOptions#operators', function () {
|
||||
})
|
||||
|
||||
it('should evaluate a custom operator', async function () {
|
||||
const result = await engine.parseAndRender('{% if "foo" isFooBar "bar" %}True{% endif %}')
|
||||
expect(result).to.equal('True')
|
||||
const first = await engine.parseAndRender('{% if "foo" isFooBar "bar" %}True{% else %}False{% endif %}')
|
||||
expect(first).to.equal('True')
|
||||
const second = await engine.parseAndRender('{% if "foo" isFooBar "foo" %}True{% else %}False{% endif %}')
|
||||
expect(second).to.equal('False')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user