@@ -158,6 +158,20 @@ ruleTester.run('consistent-test-it with fn=test', rule, {
158
158
} ,
159
159
] ,
160
160
} ,
161
+ {
162
+ code : 'describe.each``("foo", () => { it.each``("bar") })' ,
163
+ output : 'describe.each``("foo", () => { test.each``("bar") })' ,
164
+ options : [ { fn : TestCaseName . test } ] ,
165
+ errors : [
166
+ {
167
+ messageId : 'consistentMethodWithinDescribe' ,
168
+ data : {
169
+ testKeywordWithinDescribe : TestCaseName . test ,
170
+ oppositeTestKeyword : TestCaseName . it ,
171
+ } ,
172
+ } ,
173
+ ] ,
174
+ } ,
161
175
{
162
176
code : 'describe("suite", () => { it("foo") })' ,
163
177
output : 'describe("suite", () => { test("foo") })' ,
@@ -299,6 +313,20 @@ ruleTester.run('consistent-test-it with fn=it', rule, {
299
313
} ,
300
314
] ,
301
315
} ,
316
+ {
317
+ code : 'describe.each``("foo", () => { test.each``("bar") })' ,
318
+ output : 'describe.each``("foo", () => { it.each``("bar") })' ,
319
+ options : [ { fn : TestCaseName . it } ] ,
320
+ errors : [
321
+ {
322
+ messageId : 'consistentMethodWithinDescribe' ,
323
+ data : {
324
+ testKeywordWithinDescribe : TestCaseName . it ,
325
+ oppositeTestKeyword : TestCaseName . test ,
326
+ } ,
327
+ } ,
328
+ ] ,
329
+ } ,
302
330
{
303
331
code : 'test.each``("foo")' ,
304
332
output : 'it.each``("foo")' ,
0 commit comments