@@ -158,6 +158,20 @@ ruleTester.run('consistent-test-it with fn=test', rule, {
158158 } ,
159159 ] ,
160160 } ,
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+ } ,
161175 {
162176 code : 'describe("suite", () => { it("foo") })' ,
163177 output : 'describe("suite", () => { test("foo") })' ,
@@ -299,6 +313,20 @@ ruleTester.run('consistent-test-it with fn=it', rule, {
299313 } ,
300314 ] ,
301315 } ,
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+ } ,
302330 {
303331 code : 'test.each``("foo")' ,
304332 output : 'it.each``("foo")' ,
0 commit comments