Skip to content

Commit 9002a7e

Browse files
committedOct 12, 2016
Add state less component test.
·
v7.37.5v6.5.0
1 parent daf7726 commit 9002a7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎tests/lib/rules/forbid-component-props.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ ruleTester.run('forbid-component-props', rule, {
101101
].join('\n'),
102102
options: [{forbid: ['style']}],
103103
parserOptions: parserOptions
104+
}, {
105+
code: [
106+
'const First = (props) => (',
107+
' <this.Foo {...props} />',
108+
');'
109+
].join('\n'),
110+
parserOptions: parserOptions
104111
}],
105112

106113
invalid: [{

0 commit comments

Comments
 (0)
Please sign in to comment.