Skip to content

Commit

Permalink
Update to createReactClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Sutton committed Apr 30, 2017
1 parent d4b6709 commit 0b2c3e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/lib/rules/default-props-match-prop-types.js
Expand Up @@ -171,10 +171,10 @@ ruleTester.run('default-props-match-prop-types', rule, {
},

//
// React.createClass components
// createReactClass components
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' },',
Expand All @@ -187,7 +187,7 @@ ruleTester.run('default-props-match-prop-types', rule, {
},
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' },',
Expand All @@ -205,7 +205,7 @@ ruleTester.run('default-props-match-prop-types', rule, {
},
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' },',
Expand All @@ -224,7 +224,7 @@ ruleTester.run('default-props-match-prop-types', rule, {
},
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' }',
Expand Down Expand Up @@ -876,10 +876,10 @@ ruleTester.run('default-props-match-prop-types', rule, {
},

//
// React.createClass components
// createReactClass components
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' },',
Expand All @@ -902,7 +902,7 @@ ruleTester.run('default-props-match-prop-types', rule, {
},
{
code: [
'var Greeting = React.createClass({',
'var Greeting = createReactClass({',
' render: function() {',
' return <div>Hello {this.props.foo} {this.props.bar}</div>;',
' },',
Expand Down

0 comments on commit 0b2c3e2

Please sign in to comment.