Skip to content

Commit 90b9e90

Browse files
committed
test(max-props): make tests more strict
1 parent 0720339 commit 90b9e90

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tests/lib/rules/max-props.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ tester.run('max-props', rule, {
137137
{
138138
message: 'Component has too many props (2). Maximum allowed is 1.',
139139
line: 3,
140-
endLine: 3
140+
endLine: 3,
141+
column: 7,
142+
endColumn: 44
141143
}
142144
]
143145
},
@@ -158,7 +160,9 @@ tester.run('max-props', rule, {
158160
{
159161
message: 'Component has too many props (2). Maximum allowed is 1.',
160162
line: 4,
161-
endLine: 7
163+
endLine: 7,
164+
column: 9,
165+
endColumn: 10
162166
}
163167
]
164168
},
@@ -180,7 +184,9 @@ tester.run('max-props', rule, {
180184
{
181185
message: 'Component has too many props (3). Maximum allowed is 2.',
182186
line: 3,
183-
endLine: 3
187+
endLine: 3,
188+
column: 7,
189+
endColumn: 69
184190
}
185191
]
186192
},
@@ -201,7 +207,9 @@ tester.run('max-props', rule, {
201207
{
202208
message: 'Component has too many props (3). Maximum allowed is 2.',
203209
line: 3,
204-
endLine: 3
210+
endLine: 3,
211+
column: 7,
212+
endColumn: 85
205213
}
206214
]
207215
},
@@ -230,7 +238,9 @@ tester.run('max-props', rule, {
230238
{
231239
message: 'Component has too many props (3). Maximum allowed is 2.',
232240
line: 3,
233-
endLine: 11
241+
endLine: 11,
242+
column: 7,
243+
endColumn: 11
234244
}
235245
]
236246
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy