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 9002a7e
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 @@ -101,6 +101,13 @@ ruleTester.run('forbid-component-props', rule, {
].join('\n'),
options: [{forbid: ['style']}],
parserOptions: parserOptions
}, {
code: [
'const First = (props) => (',
' <this.Foo {...props} />',
');'
].join('\n'),
parserOptions: parserOptions
}],

invalid: [{
Expand Down

0 comments on commit 9002a7e

Please sign in to comment.