Skip to content

Commit dda84f4

Browse files
author
Joachim Seminck
committed
Fix the line number and column on which the error appears in the invalid test cases
1 parent 8983d64 commit dda84f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/lib/rules/no-unused-prop-types.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,8 +2696,8 @@ ruleTester.run('no-unused-prop-types', rule, {
26962696
].join('\n'),
26972697
errors: [{
26982698
message: '\'bar\' PropType is defined but prop is never used',
2699-
line: 19,
2700-
column: 10
2699+
line: 10,
2700+
column: 8
27012701
}]
27022702
}, {
27032703
code: [
@@ -2736,8 +2736,8 @@ ruleTester.run('no-unused-prop-types', rule, {
27362736
].join('\n'),
27372737
errors: [{
27382738
message: '\'bar\' PropType is defined but prop is never used',
2739-
line: 19,
2740-
column: 10
2739+
line: 10,
2740+
column: 8
27412741
}]
27422742
}, {
27432743
code: [
@@ -2776,8 +2776,8 @@ ruleTester.run('no-unused-prop-types', rule, {
27762776
].join('\n'),
27772777
errors: [{
27782778
message: '\'bar\' PropType is defined but prop is never used',
2779-
line: 19,
2780-
column: 10
2779+
line: 10,
2780+
column: 8
27812781
}]
27822782
}
27832783
/* , {

0 commit comments

Comments
 (0)