@@ -107,31 +107,31 @@ describe('liquid helper tags', () => {
107
107
108
108
describe ( 'indented_data_reference tag' , ( ) => {
109
109
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 %}'
111
111
const expected = ` a rose by any other name
112
112
would smell as sweet`
113
113
const output = await liquid . parseAndRender ( template , context )
114
114
expect ( output ) . toBe ( expected )
115
115
} )
116
116
117
117
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 %}'
119
119
const expected = `a rose by any other name
120
120
would smell as sweet`
121
121
const output = await liquid . parseAndRender ( template , context )
122
122
expect ( output ) . toBe ( expected )
123
123
} )
124
124
125
125
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 %}'
127
127
const expected = `a rose by any other name
128
128
would smell as sweet`
129
129
const output = await liquid . parseAndRender ( template , context )
130
130
expect ( output ) . toBe ( expected )
131
131
} )
132
132
133
133
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 %}'
135
135
const expected = ` a rose by any other name
136
136
would smell as sweet`
137
137
const output = await liquid . parseAndRender ( template , context )
0 commit comments