feat: when tag with multiple values

This commit is contained in:
Memmie Lenglet
2021-05-06 22:52:22 +08:00
committed by Jun Yang
parent 3e130e01a7
commit 8f9639f1d6
4 changed files with 27 additions and 8 deletions
+7
View File
@@ -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')
})
})