@@ -76,6 +76,18 @@ ruleTester.run('lowercase-name', rule, {
76
76
} ,
77
77
] ,
78
78
} ,
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
+ } ,
79
91
{
80
92
code : 'it("Foo", function () {})' ,
81
93
output : 'it("foo", function () {})' ,
@@ -112,6 +124,18 @@ ruleTester.run('lowercase-name', rule, {
112
124
} ,
113
125
] ,
114
126
} ,
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
+ } ,
115
139
{
116
140
code : 'test("Foo", function () {})' ,
117
141
output : 'test("foo", function () {})' ,
@@ -184,6 +208,18 @@ ruleTester.run('lowercase-name', rule, {
184
208
} ,
185
209
] ,
186
210
} ,
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
+ } ,
187
223
{
188
224
code : "it.each(['green', 'black'])('Should return %', () => {})" ,
189
225
output : "it.each(['green', 'black'])('should return %', () => {})" ,
@@ -225,6 +261,14 @@ ruleTester.run('lowercase-name with ignore=describe', rule, {
225
261
code : 'describe(`Foo`, function () {})' ,
226
262
options : [ { ignore : [ DescribeAlias . describe ] } ] ,
227
263
} ,
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
+ } ,
228
272
] ,
229
273
invalid : [ ] ,
230
274
} ) ;
@@ -243,6 +287,14 @@ ruleTester.run('lowercase-name with ignore=test', rule, {
243
287
code : 'test(`Foo`, function () {})' ,
244
288
options : [ { ignore : [ TestCaseName . test ] } ] ,
245
289
} ,
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
+ } ,
246
298
] ,
247
299
invalid : [ ] ,
248
300
} ) ;
@@ -261,6 +313,14 @@ ruleTester.run('lowercase-name with ignore=it', rule, {
261
313
code : 'it(`Foo`, function () {})' ,
262
314
options : [ { ignore : [ TestCaseName . it ] } ] ,
263
315
} ,
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
+ } ,
264
324
] ,
265
325
invalid : [ ] ,
266
326
} ) ;
0 commit comments