@@ -80,37 +80,81 @@ ruleTester.run('mustache-interpolation-spacing', rule, {
80
80
code : '<template><div>{{ text}}</div></template>' ,
81
81
output : '<template><div>{{ text }}</div></template>' ,
82
82
options : [ 'always' ] ,
83
- errors : [ "Expected 1 space before '}}', but not found." ]
83
+ errors : [
84
+ {
85
+ message : "Expected 1 space before '}}', but not found." ,
86
+ line : 1 ,
87
+ column : 23 ,
88
+ endLine : 1 ,
89
+ endColumn : 25
90
+ }
91
+ ]
84
92
} ,
85
93
{
86
94
filename : 'test.vue' ,
87
95
code : '<template><div>{{text }}</div></template>' ,
88
96
output : '<template><div>{{ text }}</div></template>' ,
89
97
options : [ 'always' ] ,
90
- errors : [ "Expected 1 space after '{{', but not found." ]
98
+ errors : [
99
+ {
100
+ message : "Expected 1 space after '{{', but not found." ,
101
+ line : 1 ,
102
+ column : 16 ,
103
+ endLine : 1 ,
104
+ endColumn : 18
105
+ }
106
+ ]
91
107
} ,
92
108
{
93
109
filename : 'test.vue' ,
94
110
code : '<template><div>{{ text}}</div></template>' ,
95
111
output : '<template><div>{{text}}</div></template>' ,
96
112
options : [ 'never' ] ,
97
- errors : [ "Expected no space after '{{', but found." ]
113
+ errors : [
114
+ {
115
+ message : "Expected no space after '{{', but found." ,
116
+ line : 1 ,
117
+ column : 16 ,
118
+ endLine : 1 ,
119
+ endColumn : 19
120
+ }
121
+ ]
98
122
} ,
99
123
{
100
124
filename : 'test.vue' ,
101
125
code : '<template><div>{{text }}</div></template>' ,
102
126
output : '<template><div>{{text}}</div></template>' ,
103
127
options : [ 'never' ] ,
104
- errors : [ "Expected no space before '}}', but found." ]
128
+ errors : [
129
+ {
130
+ message : "Expected no space before '}}', but found." ,
131
+ line : 1 ,
132
+ column : 22 ,
133
+ endLine : 1 ,
134
+ endColumn : 25
135
+ }
136
+ ]
105
137
} ,
106
138
{
107
139
filename : 'test.vue' ,
108
140
code : '<template><div>{{text}}</div></template>' ,
109
141
output : '<template><div>{{ text }}</div></template>' ,
110
142
options : [ 'always' ] ,
111
143
errors : [
112
- "Expected 1 space after '{{', but not found." ,
113
- "Expected 1 space before '}}', but not found."
144
+ {
145
+ message : "Expected 1 space after '{{', but not found." ,
146
+ line : 1 ,
147
+ column : 16 ,
148
+ endLine : 1 ,
149
+ endColumn : 18
150
+ } ,
151
+ {
152
+ message : "Expected 1 space before '}}', but not found." ,
153
+ line : 1 ,
154
+ column : 22 ,
155
+ endLine : 1 ,
156
+ endColumn : 24
157
+ }
114
158
]
115
159
} ,
116
160
{
@@ -119,8 +163,20 @@ ruleTester.run('mustache-interpolation-spacing', rule, {
119
163
output : '<template><div>{{text}}</div></template>' ,
120
164
options : [ 'never' ] ,
121
165
errors : [
122
- "Expected no space after '{{', but found." ,
123
- "Expected no space before '}}', but found."
166
+ {
167
+ message : "Expected no space after '{{', but found." ,
168
+ line : 1 ,
169
+ column : 16 ,
170
+ endLine : 1 ,
171
+ endColumn : 19
172
+ } ,
173
+ {
174
+ message : "Expected no space before '}}', but found." ,
175
+ line : 1 ,
176
+ column : 23 ,
177
+ endLine : 1 ,
178
+ endColumn : 26
179
+ }
124
180
]
125
181
} ,
126
182
{
@@ -129,8 +185,20 @@ ruleTester.run('mustache-interpolation-spacing', rule, {
129
185
output : '<template><div>{{text}}</div></template>' ,
130
186
options : [ 'never' ] ,
131
187
errors : [
132
- "Expected no space after '{{', but found." ,
133
- "Expected no space before '}}', but found."
188
+ {
189
+ message : "Expected no space after '{{', but found." ,
190
+ line : 1 ,
191
+ column : 16 ,
192
+ endLine : 1 ,
193
+ endColumn : 21
194
+ } ,
195
+ {
196
+ message : "Expected no space before '}}', but found." ,
197
+ line : 1 ,
198
+ column : 25 ,
199
+ endLine : 1 ,
200
+ endColumn : 30
201
+ }
134
202
]
135
203
}
136
204
]
0 commit comments