Skip to content

Commit

Permalink
Add state less component test.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeodou committed Oct 12, 2016
1 parent daf7726 commit 38b09cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/lib/rules/forbid-component-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ ruleTester.run('forbid-component-props', rule, {
'});'
].join('\n'),
parserOptions: parserOptions
}, {
code: [
'const Greeting = (props) => (',
' <this.Foo {...props} />',
');'
].join('\n'),
parserOptions: parserOptions
}, {
code: [
'class First extends React.createClass {',
Expand Down

0 comments on commit 38b09cf

Please sign in to comment.