@@ -21,13 +21,15 @@ ruleTester.run('lowercase-name', rule, {
21
21
'it("<Foo/>", function () {})' ,
22
22
'it("123 foo", function () {})' ,
23
23
'it(42, function () {})' ,
24
+ 'it(``)' ,
24
25
'test()' ,
25
26
"test('foo', function () {})" ,
26
27
'test("foo", function () {})' ,
27
28
'test(`foo`, function () {})' ,
28
29
'test("<Foo/>", function () {})' ,
29
30
'test("123 foo", function () {})' ,
30
31
'test("42", function () {})' ,
32
+ 'test(``)' ,
31
33
'describe()' ,
32
34
"describe('foo', function () {})" ,
33
35
'describe("foo", function () {})' ,
@@ -36,11 +38,13 @@ ruleTester.run('lowercase-name', rule, {
36
38
'describe("123 foo", function () {})' ,
37
39
'describe("42", function () {})' ,
38
40
'describe(function () {})' ,
41
+ 'describe(``)' ,
39
42
] ,
40
43
41
44
invalid : [
42
45
{
43
46
code : "it('Foo', function () {})" ,
47
+ output : "it('foo', function () {})" ,
44
48
errors : [
45
49
{
46
50
message : '`it`s should begin with lowercase' ,
@@ -51,6 +55,7 @@ ruleTester.run('lowercase-name', rule, {
51
55
} ,
52
56
{
53
57
code : 'it("Foo", function () {})' ,
58
+ output : 'it("foo", function () {})' ,
54
59
errors : [
55
60
{
56
61
message : '`it`s should begin with lowercase' ,
@@ -61,6 +66,7 @@ ruleTester.run('lowercase-name', rule, {
61
66
} ,
62
67
{
63
68
code : 'it(`Foo`, function () {})' ,
69
+ output : 'it(`foo`, function () {})' ,
64
70
errors : [
65
71
{
66
72
message : '`it`s should begin with lowercase' ,
@@ -71,6 +77,7 @@ ruleTester.run('lowercase-name', rule, {
71
77
} ,
72
78
{
73
79
code : "test('Foo', function () {})" ,
80
+ output : "test('foo', function () {})" ,
74
81
errors : [
75
82
{
76
83
message : '`test`s should begin with lowercase' ,
@@ -81,6 +88,7 @@ ruleTester.run('lowercase-name', rule, {
81
88
} ,
82
89
{
83
90
code : 'test("Foo", function () {})' ,
91
+ output : 'test("foo", function () {})' ,
84
92
errors : [
85
93
{
86
94
message : '`test`s should begin with lowercase' ,
@@ -91,6 +99,7 @@ ruleTester.run('lowercase-name', rule, {
91
99
} ,
92
100
{
93
101
code : 'test(`Foo`, function () {})' ,
102
+ output : 'test(`foo`, function () {})' ,
94
103
errors : [
95
104
{
96
105
message : '`test`s should begin with lowercase' ,
@@ -101,6 +110,7 @@ ruleTester.run('lowercase-name', rule, {
101
110
} ,
102
111
{
103
112
code : "describe('Foo', function () {})" ,
113
+ output : "describe('foo', function () {})" ,
104
114
errors : [
105
115
{
106
116
message : '`describe`s should begin with lowercase' ,
@@ -111,6 +121,7 @@ ruleTester.run('lowercase-name', rule, {
111
121
} ,
112
122
{
113
123
code : 'describe("Foo", function () {})' ,
124
+ output : 'describe("foo", function () {})' ,
114
125
errors : [
115
126
{
116
127
message : '`describe`s should begin with lowercase' ,
@@ -121,6 +132,18 @@ ruleTester.run('lowercase-name', rule, {
121
132
} ,
122
133
{
123
134
code : 'describe(`Foo`, function () {})' ,
135
+ output : 'describe(`foo`, function () {})' ,
136
+ errors : [
137
+ {
138
+ message : '`describe`s should begin with lowercase' ,
139
+ column : 1 ,
140
+ line : 1 ,
141
+ } ,
142
+ ] ,
143
+ } ,
144
+ {
145
+ code : 'describe(`Some longer description`, function () {})' ,
146
+ output : 'describe(`some longer description`, function () {})' ,
124
147
errors : [
125
148
{
126
149
message : '`describe`s should begin with lowercase' ,
0 commit comments