mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 15:00:42 -07:00
style: test/integration/builtin/filters/array.ts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { test } from '../../../stub/render'
|
import { test } from '../../../stub/render'
|
||||||
import Liquid from '../../../../src/liquid'
|
import Liquid from '../../../../src/liquid'
|
||||||
import {expect} from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
describe('filters/array', function () {
|
describe('filters/array', function () {
|
||||||
let liquid: Liquid
|
let liquid: Liquid
|
||||||
@@ -33,7 +33,7 @@ describe('filters/array', function () {
|
|||||||
expect(html).to.equal('.moT rojaM ot lortnoc dnuorG')
|
expect(html).to.equal('.moT rojaM ot lortnoc dnuorG')
|
||||||
})
|
})
|
||||||
it('should be pure', async function () {
|
it('should be pure', async function () {
|
||||||
const scope = {arr: ['a', 'b', 'c']}
|
const scope = { arr: ['a', 'b', 'c'] }
|
||||||
await liquid.parseAndRender('{{ arr | reverse | join: "" }}', scope)
|
await liquid.parseAndRender('{{ arr | reverse | join: "" }}', scope)
|
||||||
const html = await liquid.parseAndRender('{{ arr | join: "" }}', scope)
|
const html = await liquid.parseAndRender('{{ arr | join: "" }}', scope)
|
||||||
expect(html).to.equal('abc')
|
expect(html).to.equal('abc')
|
||||||
|
|||||||
Reference in New Issue
Block a user