mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feat: when tag with multiple values
This commit is contained in:
@@ -64,4 +64,11 @@ describe('tags/case', function () {
|
||||
return expect(html).to.equal('d')
|
||||
})
|
||||
})
|
||||
it('should support case with multiple values', async function () {
|
||||
const src = '{% case "b" %}' +
|
||||
'{% when "a", "b" %}foo' +
|
||||
'{%endcase%}'
|
||||
const html = await liquid.parseAndRender(src)
|
||||
return expect(html).to.equal('foo')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user