Skip to content

Commit 48b582a

Browse files
committed
fix cases with this.foo
1 parent 31f901c commit 48b582a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/lib/rules/forbid-dom-props.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ruleTester.run('forbid-dom-props', rule, {
5454
var First = createReactClass({
5555
propTypes: externalPropTypes,
5656
render: function() {
57-
return <this.Foo bar="baz" />;
57+
return <this.foo bar="baz" />;
5858
}
5959
});
6060
`,
@@ -64,16 +64,16 @@ ruleTester.run('forbid-dom-props', rule, {
6464
code: `
6565
class First extends createReactClass {
6666
render() {
67-
return <this.foo id="bar" />;
67+
return <this.foo className="bar" />;
6868
}
6969
}
7070
`,
71-
options: [{ forbid: ['id'] }],
71+
options: [{ forbid: ['style'] }],
7272
},
7373
{
7474
code: `
7575
const First = (props) => (
76-
<this.Foo {...props} />
76+
<this.foo {...props} />
7777
);
7878
`,
7979
options: [{ forbid: ['id'] }],

0 commit comments

Comments
 (0)