@@ -31,78 +31,97 @@ ruleTester.run('no-focused-tests', rule, {
31
31
invalid : [
32
32
{
33
33
code : 'describe.only()' ,
34
+ output : 'describe()' ,
34
35
errors : [ { messageId : 'focusedTest' , column : 10 , line : 1 } ] ,
35
36
} ,
36
37
{
37
38
code : 'describe.only.each()' ,
39
+ output : 'describe.each()' ,
38
40
errors : [ { messageId : 'focusedTest' , column : 10 , line : 1 } ] ,
39
41
} ,
40
42
{
41
43
code : 'describe.only.each`table`()' ,
44
+ output : 'describe.each`table`()' ,
42
45
errors : [ { messageId : 'focusedTest' , column : 10 , line : 1 } ] ,
43
46
} ,
44
47
{
45
48
code : 'describe["only"]()' ,
49
+ output : 'describe()' ,
46
50
errors : [ { messageId : 'focusedTest' , column : 10 , line : 1 } ] ,
47
51
} ,
48
52
{
49
53
code : 'it.only()' ,
54
+ output : 'it()' ,
50
55
errors : [ { messageId : 'focusedTest' , column : 4 , line : 1 } ] ,
51
56
} ,
52
57
{
53
58
code : 'it.concurrent.only()' ,
59
+ output : 'it.concurrent()' ,
54
60
errors : [ { messageId : 'focusedTest' , column : 4 , line : 1 } ] ,
55
61
} ,
56
62
{
57
63
code : 'it.only.each()' ,
64
+ output : 'it.each()' ,
58
65
errors : [ { messageId : 'focusedTest' , column : 4 , line : 1 } ] ,
59
66
} ,
60
67
{
61
68
code : 'it.only.each`table`()' ,
69
+ output : 'it.each`table`()' ,
62
70
errors : [ { messageId : 'focusedTest' , column : 4 , line : 1 } ] ,
63
71
} ,
64
72
{
65
73
code : 'it["only"]()' ,
74
+ output : 'it()' ,
66
75
errors : [ { messageId : 'focusedTest' , column : 4 , line : 1 } ] ,
67
76
} ,
68
77
{
69
78
code : 'test.only()' ,
79
+ output : 'test()' ,
70
80
errors : [ { messageId : 'focusedTest' , column : 6 , line : 1 } ] ,
71
81
} ,
72
82
{
73
83
code : 'test.concurrent.only()' ,
84
+ output : 'test.concurrent()' ,
74
85
errors : [ { messageId : 'focusedTest' , column : 6 , line : 1 } ] ,
75
86
} ,
76
87
{
77
88
code : 'test.only.each()' ,
89
+ output : 'test.each()' ,
78
90
errors : [ { messageId : 'focusedTest' , column : 6 , line : 1 } ] ,
79
91
} ,
80
92
{
81
93
code : 'test.only.each`table`()' ,
94
+ output : 'test.each`table`()' ,
82
95
errors : [ { messageId : 'focusedTest' , column : 6 , line : 1 } ] ,
83
96
} ,
84
97
{
85
98
code : 'test["only"]()' ,
99
+ output : 'test()' ,
86
100
errors : [ { messageId : 'focusedTest' , column : 6 , line : 1 } ] ,
87
101
} ,
88
102
{
89
103
code : 'fdescribe()' ,
104
+ output : 'describe()' ,
90
105
errors : [ { messageId : 'focusedTest' , column : 1 , line : 1 } ] ,
91
106
} ,
92
107
{
93
108
code : 'fit()' ,
109
+ output : 'it()' ,
94
110
errors : [ { messageId : 'focusedTest' , column : 1 , line : 1 } ] ,
95
111
} ,
96
112
{
97
113
code : 'fit.each()' ,
114
+ output : 'it.each()' ,
98
115
errors : [ { messageId : 'focusedTest' , column : 1 , line : 1 } ] ,
99
116
} ,
100
117
{
101
118
code : 'fit.each`table`()' ,
119
+ output : 'it.each`table`()' ,
102
120
errors : [ { messageId : 'focusedTest' , column : 1 , line : 1 } ] ,
103
121
} ,
104
122
{
105
123
code : 'ftest.each`table`()' ,
124
+ output : 'test.each`table`()' ,
106
125
errors : [ { messageId : 'focusedTest' , column : 1 , line : 1 } ] ,
107
126
} ,
108
127
] ,
0 commit comments