mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
feat: nil/null/empty/blank literals, resolves #102
This commit is contained in:
@@ -62,4 +62,9 @@ describe('.parseAndRender()', function () {
|
||||
const html = await engine.parseAndRender(src)
|
||||
return expect(html).to.equal('apples')
|
||||
})
|
||||
it('should support nil(null, undefined) literal', async function () {
|
||||
const src = '{% if notexist == nil %}true{% endif %}'
|
||||
const html = await engine.parseAndRender(src)
|
||||
expect(html).to.equal('true')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user