Skip to content

Commit cd8d908

Browse files
committed
no longer need the site.data part of these tags
1 parent 3457258 commit cd8d908

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/liquid-helpers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,31 +107,31 @@ describe('liquid helper tags', () => {
107107

108108
describe('indented_data_reference tag', () => {
109109
test('without any number of spaces specified', async () => {
110-
const template = '{% indented_data_reference site.data.reusables.example %}'
110+
const template = '{% indented_data_reference reusables.example %}'
111111
const expected = ` a rose by any other name
112112
would smell as sweet`
113113
const output = await liquid.parseAndRender(template, context)
114114
expect(output).toBe(expected)
115115
})
116116

117117
test('with 0 spaces specified', async () => {
118-
const template = '{% indented_data_reference site.data.reusables.example spaces=0 %}'
118+
const template = '{% indented_data_reference reusables.example spaces=0 %}'
119119
const expected = `a rose by any other name
120120
would smell as sweet`
121121
const output = await liquid.parseAndRender(template, context)
122122
expect(output).toBe(expected)
123123
})
124124

125125
test('with 0 spaces specified and whitespace around equals sign', async () => {
126-
const template = '{% indented_data_reference site.data.reusables.example spaces = 0 %}'
126+
const template = '{% indented_data_reference reusables.example spaces = 0 %}'
127127
const expected = `a rose by any other name
128128
would smell as sweet`
129129
const output = await liquid.parseAndRender(template, context)
130130
expect(output).toBe(expected)
131131
})
132132

133133
test('with 5 spaces specified', async () => {
134-
const template = '{% indented_data_reference site.data.reusables.example spaces=5 %}'
134+
const template = '{% indented_data_reference reusables.example spaces=5 %}'
135135
const expected = ` a rose by any other name
136136
would smell as sweet`
137137
const output = await liquid.parseAndRender(template, context)

0 commit comments

Comments
 (0)