mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 15:00:42 -07:00
docs: website for LiquidJS
This commit is contained in:
@@ -27,6 +27,14 @@ describe('tags/cycle', function () {
|
||||
return expect(html).to.equal('1e1e1')
|
||||
})
|
||||
|
||||
it('should considered different groups for different arguments', async function () {
|
||||
const src = "{% cycle '1', '2', '3'%}" +
|
||||
"{% cycle '1', '2'%}" +
|
||||
"{% cycle '1', '2', '3'%}"
|
||||
const html = await liquid.parseAndRender(src)
|
||||
return expect(html).to.equal('112')
|
||||
})
|
||||
|
||||
it('should support cycle group', async function () {
|
||||
const src = "{% cycle one: '1', '2', '3'%}" +
|
||||
"{% cycle 1: '1', '2', '3'%}" +
|
||||
|
||||
Reference in New Issue
Block a user