Skip to content

Commit c603bef

Browse files
committed
test: require-name-property
1 parent 178d2a9 commit c603bef

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/lib/rules/require-name-property.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ ruleTester.run('require-name-property', rule, {
8080
errors: [
8181
{
8282
message: 'Required name property is not set.',
83+
line: 2,
84+
column: 24,
85+
endLine: 3,
86+
endColumn: 10,
8387
suggestions: [
8488
{
8589
desc: 'Add name property to component.',
@@ -103,6 +107,10 @@ ruleTester.run('require-name-property', rule, {
103107
errors: [
104108
{
105109
message: 'Required name property is not set.',
110+
line: 2,
111+
column: 40,
112+
endLine: 3,
113+
endColumn: 10,
106114
suggestions: [
107115
{
108116
desc: 'Add name property to component.',
@@ -125,6 +133,10 @@ ruleTester.run('require-name-property', rule, {
125133
errors: [
126134
{
127135
message: 'Required name property is not set.',
136+
line: 2,
137+
column: 40,
138+
endLine: 2,
139+
endColumn: 43,
128140
suggestions: [
129141
{
130142
desc: 'Add name property to component.',
@@ -147,6 +159,10 @@ ruleTester.run('require-name-property', rule, {
147159
errors: [
148160
{
149161
message: 'Required name property is not set.',
162+
line: 2,
163+
column: 24,
164+
endLine: 2,
165+
endColumn: 27,
150166
suggestions: [
151167
{
152168
desc: 'Add name property to component.',
@@ -171,6 +187,10 @@ ruleTester.run('require-name-property', rule, {
171187
errors: [
172188
{
173189
message: 'Required name property is not set.',
190+
line: 2,
191+
column: 24,
192+
endLine: 4,
193+
endColumn: 10,
174194
suggestions: [
175195
{
176196
desc: 'Add name property to component.',
@@ -196,6 +216,10 @@ ruleTester.run('require-name-property', rule, {
196216
errors: [
197217
{
198218
message: 'Required name property is not set.',
219+
line: 2,
220+
column: 40,
221+
endLine: 4,
222+
endColumn: 10,
199223
suggestions: [
200224
{
201225
desc: 'Add name property to component.',
@@ -224,6 +248,10 @@ ruleTester.run('require-name-property', rule, {
224248
errors: [
225249
{
226250
message: 'Required name property is not set.',
251+
line: 2,
252+
column: 24,
253+
endLine: 6,
254+
endColumn: 10,
227255
suggestions: [
228256
{
229257
desc: 'Add name property to component.',
@@ -251,6 +279,10 @@ ruleTester.run('require-name-property', rule, {
251279
errors: [
252280
{
253281
message: 'Required name property is not set.',
282+
line: 2,
283+
column: 24,
284+
endLine: 4,
285+
endColumn: 10,
254286
suggestions: [
255287
{
256288
desc: 'Add name property to component.',

0 commit comments

Comments
 (0)