Skip to content

Commit af9ba40

Browse files
committed
Update require-direct-export.js
1 parent cdfa1e6 commit af9ba40

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

tests/lib/rules/require-direct-export.js

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ ruleTester.run('require-direct-export', rule, {
9494
errors: [
9595
{
9696
message: 'Expected the component literal to be directly exported.',
97-
line: 3
97+
line: 3,
98+
column: 7,
99+
endLine: 3,
100+
endColumn: 23
98101
}
99102
]
100103
},
@@ -108,7 +111,10 @@ ruleTester.run('require-direct-export', rule, {
108111
errors: [
109112
{
110113
message: 'Expected the component literal to be directly exported.',
111-
line: 5
114+
line: 5,
115+
column: 7,
116+
endLine: 5,
117+
endColumn: 23
112118
}
113119
]
114120
},
@@ -118,7 +124,10 @@ ruleTester.run('require-direct-export', rule, {
118124
errors: [
119125
{
120126
message: 'Expected the component literal to be directly exported.',
121-
line: 1
127+
line: 1,
128+
column: 1,
129+
endLine: 1,
130+
endColumn: 38
122131
}
123132
]
124133
},
@@ -128,7 +137,10 @@ ruleTester.run('require-direct-export', rule, {
128137
errors: [
129138
{
130139
message: 'Expected the component literal to be directly exported.',
131-
line: 1
140+
line: 1,
141+
column: 1,
142+
endLine: 1,
143+
endColumn: 30
132144
}
133145
]
134146
},
@@ -138,7 +150,10 @@ ruleTester.run('require-direct-export', rule, {
138150
errors: [
139151
{
140152
message: 'Expected the component literal to be directly exported.',
141-
line: 1
153+
line: 1,
154+
column: 1,
155+
endLine: 1,
156+
endColumn: 24
142157
}
143158
]
144159
},
@@ -152,7 +167,10 @@ ruleTester.run('require-direct-export', rule, {
152167
errors: [
153168
{
154169
message: 'Expected the component literal to be directly exported.',
155-
line: 1
170+
line: 1,
171+
column: 1,
172+
endLine: 5,
173+
endColumn: 8
156174
}
157175
]
158176
},
@@ -164,7 +182,10 @@ ruleTester.run('require-direct-export', rule, {
164182
errors: [
165183
{
166184
message: 'Expected the component literal to be directly exported.',
167-
line: 1
185+
line: 1,
186+
column: 1,
187+
endLine: 3,
188+
endColumn: 8
168189
}
169190
]
170191
},
@@ -179,7 +200,10 @@ ruleTester.run('require-direct-export', rule, {
179200
errors: [
180201
{
181202
message: 'Expected the component literal to be directly exported.',
182-
line: 5
203+
line: 5,
204+
column: 7,
205+
endLine: 5,
206+
endColumn: 23
183207
}
184208
]
185209
},

0 commit comments

Comments
 (0)