@@ -76,6 +76,18 @@ ruleTester.run('lowercase-name', rule, {
7676 } ,
7777 ] ,
7878 } ,
79+ {
80+ code : "xit('Foo', function () {})" ,
81+ output : "xit('foo', function () {})" ,
82+ errors : [
83+ {
84+ messageId : 'unexpectedLowercase' ,
85+ data : { method : TestCaseName . xit } ,
86+ column : 5 ,
87+ line : 1 ,
88+ } ,
89+ ] ,
90+ } ,
7991 {
8092 code : 'it("Foo", function () {})' ,
8193 output : 'it("foo", function () {})' ,
@@ -112,6 +124,18 @@ ruleTester.run('lowercase-name', rule, {
112124 } ,
113125 ] ,
114126 } ,
127+ {
128+ code : "xtest('Foo', function () {})" ,
129+ output : "xtest('foo', function () {})" ,
130+ errors : [
131+ {
132+ messageId : 'unexpectedLowercase' ,
133+ data : { method : TestCaseName . xtest } ,
134+ column : 7 ,
135+ line : 1 ,
136+ } ,
137+ ] ,
138+ } ,
115139 {
116140 code : 'test("Foo", function () {})' ,
117141 output : 'test("foo", function () {})' ,
@@ -184,6 +208,18 @@ ruleTester.run('lowercase-name', rule, {
184208 } ,
185209 ] ,
186210 } ,
211+ {
212+ code : 'fdescribe(`Some longer description`, function () {})' ,
213+ output : 'fdescribe(`some longer description`, function () {})' ,
214+ errors : [
215+ {
216+ messageId : 'unexpectedLowercase' ,
217+ data : { method : DescribeAlias . fdescribe } ,
218+ column : 11 ,
219+ line : 1 ,
220+ } ,
221+ ] ,
222+ } ,
187223 {
188224 code : "it.each(['green', 'black'])('Should return %', () => {})" ,
189225 output : "it.each(['green', 'black'])('should return %', () => {})" ,
@@ -225,6 +261,14 @@ ruleTester.run('lowercase-name with ignore=describe', rule, {
225261 code : 'describe(`Foo`, function () {})' ,
226262 options : [ { ignore : [ DescribeAlias . describe ] } ] ,
227263 } ,
264+ {
265+ code : 'fdescribe(`Foo`, function () {})' ,
266+ options : [ { ignore : [ DescribeAlias . describe ] } ] ,
267+ } ,
268+ {
269+ code : 'describe.skip(`Foo`, function () {})' ,
270+ options : [ { ignore : [ DescribeAlias . describe ] } ] ,
271+ } ,
228272 ] ,
229273 invalid : [ ] ,
230274} ) ;
@@ -243,6 +287,14 @@ ruleTester.run('lowercase-name with ignore=test', rule, {
243287 code : 'test(`Foo`, function () {})' ,
244288 options : [ { ignore : [ TestCaseName . test ] } ] ,
245289 } ,
290+ {
291+ code : 'xtest(`Foo`, function () {})' ,
292+ options : [ { ignore : [ TestCaseName . test ] } ] ,
293+ } ,
294+ {
295+ code : 'test.only(`Foo`, function () {})' ,
296+ options : [ { ignore : [ TestCaseName . test ] } ] ,
297+ } ,
246298 ] ,
247299 invalid : [ ] ,
248300} ) ;
@@ -261,6 +313,14 @@ ruleTester.run('lowercase-name with ignore=it', rule, {
261313 code : 'it(`Foo`, function () {})' ,
262314 options : [ { ignore : [ TestCaseName . it ] } ] ,
263315 } ,
316+ {
317+ code : 'fit(`Foo`, function () {})' ,
318+ options : [ { ignore : [ TestCaseName . it ] } ] ,
319+ } ,
320+ {
321+ code : 'it.skip(`Foo`, function () {})' ,
322+ options : [ { ignore : [ TestCaseName . it ] } ] ,
323+ } ,
264324 ] ,
265325 invalid : [ ] ,
266326} ) ;
0 commit comments