1
0
mirror of synced 2025-12-19 18:10:59 -05:00

no longer need the site.data part of these tags

This commit is contained in:
Sarah Schneider
2021-04-21 13:10:30 -04:00
parent 3457258f6d
commit cd8d908691

View File

@@ -107,7 +107,7 @@ describe('liquid helper tags', () => {
describe('indented_data_reference tag', () => {
test('without any number of spaces specified', async () => {
const template = '{% indented_data_reference site.data.reusables.example %}'
const template = '{% indented_data_reference reusables.example %}'
const expected = ` a rose by any other name
would smell as sweet`
const output = await liquid.parseAndRender(template, context)
@@ -115,7 +115,7 @@ describe('liquid helper tags', () => {
})
test('with 0 spaces specified', async () => {
const template = '{% indented_data_reference site.data.reusables.example spaces=0 %}'
const template = '{% indented_data_reference reusables.example spaces=0 %}'
const expected = `a rose by any other name
would smell as sweet`
const output = await liquid.parseAndRender(template, context)
@@ -123,7 +123,7 @@ would smell as sweet`
})
test('with 0 spaces specified and whitespace around equals sign', async () => {
const template = '{% indented_data_reference site.data.reusables.example spaces = 0 %}'
const template = '{% indented_data_reference reusables.example spaces = 0 %}'
const expected = `a rose by any other name
would smell as sweet`
const output = await liquid.parseAndRender(template, context)
@@ -131,7 +131,7 @@ would smell as sweet`
})
test('with 5 spaces specified', async () => {
const template = '{% indented_data_reference site.data.reusables.example spaces=5 %}'
const template = '{% indented_data_reference reusables.example spaces=5 %}'
const expected = ` a rose by any other name
would smell as sweet`
const output = await liquid.parseAndRender(template, context)