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 046cb51

Browse files
authored
test(no-lifecycle-after-await): make tests more strict (#2898)
1 parent b27f31d commit 046cb51

File tree

1 file changed

+49
-12
lines changed

1 file changed

+49
-12
lines changed

‎tests/lib/rules/no-lifecycle-after-await.js

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,47 +212,80 @@ tester.run('no-lifecycle-after-await', rule, {
212212
errors: [
213213
{
214214
messageId: 'forbidden',
215-
line: 8
215+
line: 8,
216+
column: 11,
217+
endLine: 8,
218+
endColumn: 45
216219
},
217220
{
218221
messageId: 'forbidden',
219-
line: 9
222+
line: 9,
223+
column: 11,
224+
endLine: 9,
225+
endColumn: 47
220226
},
221227
{
222228
messageId: 'forbidden',
223-
line: 10
229+
line: 10,
230+
column: 11,
231+
endLine: 10,
232+
endColumn: 46
224233
},
225234
{
226235
messageId: 'forbidden',
227-
line: 11
236+
line: 11,
237+
column: 11,
238+
endLine: 11,
239+
endColumn: 47
228240
},
229241
{
230242
messageId: 'forbidden',
231-
line: 12
243+
line: 12,
244+
column: 11,
245+
endLine: 12,
246+
endColumn: 41
232247
},
233248
{
234249
messageId: 'forbidden',
235-
line: 13
250+
line: 13,
251+
column: 11,
252+
endLine: 13,
253+
endColumn: 47
236254
},
237255
{
238256
messageId: 'forbidden',
239-
line: 14
257+
line: 14,
258+
column: 11,
259+
endLine: 14,
260+
endColumn: 49
240261
},
241262
{
242263
messageId: 'forbidden',
243-
line: 15
264+
line: 15,
265+
column: 11,
266+
endLine: 15,
267+
endColumn: 43
244268
},
245269
{
246270
messageId: 'forbidden',
247-
line: 16
271+
line: 16,
272+
column: 11,
273+
endLine: 16,
274+
endColumn: 41
248275
},
249276
{
250277
messageId: 'forbidden',
251-
line: 17
278+
line: 17,
279+
column: 11,
280+
endLine: 17,
281+
endColumn: 43
252282
},
253283
{
254284
messageId: 'forbidden',
255-
line: 18
285+
line: 18,
286+
column: 11,
287+
endLine: 18,
288+
endColumn: 45
256289
}
257290
]
258291
},
@@ -272,7 +305,11 @@ tester.run('no-lifecycle-after-await', rule, {
272305
`,
273306
errors: [
274307
{
275-
messageId: 'forbidden'
308+
messageId: 'forbidden',
309+
line: 8,
310+
column: 11,
311+
endLine: 8,
312+
endColumn: 43
276313
}
277314
]
278315
}

0 commit comments

Comments
(0)

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