Skip to content

Commit 86b3712

Browse files
committed
[Tests] prop-types: add passing test
Closes #3103
1 parent 42f23b3 commit 86b3712

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,6 +3423,20 @@ ruleTester.run('prop-types', rule, {
34233423
}
34243424
}
34253425
`,
3426+
},
3427+
{
3428+
code: `
3429+
class Test extends React.Component {
3430+
static propTypes = {
3431+
value: PropTypes.string
3432+
};
3433+
3434+
render() {
3435+
return <span>{this.props.value}</span>;
3436+
}
3437+
}
3438+
`,
3439+
features: ['class fields'],
34263440
}
34273441
)),
34283442

0 commit comments

Comments
 (0)