Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9be7549

Browse files
authored
test(no-deprecated-data-object-declaration): make tests more strict (#2868)
1 parent eaaffe2 commit 9be7549

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

‎tests/lib/rules/no-deprecated-data-object-declaration.js

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ return {
155155
{
156156
message:
157157
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
158-
line: 4
158+
line: 4,
159+
column: 11,
160+
endLine: 6,
161+
endColumn: 12
159162
}
160163
]
161164
},
@@ -182,7 +185,10 @@ return {
182185
{
183186
message:
184187
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
185-
line: 3
188+
line: 3,
189+
column: 11,
190+
endLine: 5,
191+
endColumn: 12
186192
}
187193
]
188194
},
@@ -209,7 +215,10 @@ return {
209215
{
210216
message:
211217
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
212-
line: 3
218+
line: 3,
219+
column: 11,
220+
endLine: 5,
221+
endColumn: 12
213222
}
214223
]
215224
},
@@ -236,7 +245,10 @@ return (/*b*/{
236245
{
237246
message:
238247
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
239-
line: 3
248+
line: 3,
249+
column: 11,
250+
endLine: 5,
251+
endColumn: 13
240252
}
241253
]
242254
},
@@ -263,7 +275,10 @@ return {
263275
{
264276
message:
265277
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
266-
line: 3
278+
line: 3,
279+
column: 11,
280+
endLine: 5,
281+
endColumn: 12
267282
}
268283
]
269284
},
@@ -290,7 +305,10 @@ return {
290305
{
291306
message:
292307
"Object declaration on 'data' property is deprecated. Using function declaration instead.",
293-
line: 3
308+
line: 3,
309+
column: 11,
310+
endLine: 5,
311+
endColumn: 12
294312
}
295313
]
296314
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /