Skip to content

Commit

Permalink
Fix tests for babel/babel#3225
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Jan 6, 2016
1 parent 44ad202 commit 2c499f2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/lib/rules/display-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ruleTester.run('display-name', rule, {
}, {
code: [
'class Hello {',
' method',
' method;',
'}'
].join('\n'),
parser: 'babel-eslint',
Expand All @@ -96,7 +96,7 @@ ruleTester.run('display-name', rule, {
}, {
code: [
'class Hello extends React.Component {',
' static displayName = \'Widget\'',
' static displayName = \'Widget\';',
' render() {',
' return <div>Hello {this.props.name}</div>;',
' }',
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/forbid-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ruleTester.run('forbid-prop-types', rule, {
' a: React.PropTypes.any,',
' c: React.PropTypes.any,',
' b: React.PropTypes.any',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down Expand Up @@ -398,7 +398,7 @@ ruleTester.run('forbid-prop-types', rule, {
' static propTypes = {',
' a: React.PropTypes.array,',
' o: React.PropTypes.object',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/rules/jsx-sort-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ ruleTester.run('jsx-sort-prop-types', rule, {
' a: React.PropTypes.any,',
' b: React.PropTypes.any,',
' c: React.PropTypes.any',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down Expand Up @@ -173,7 +173,7 @@ ruleTester.run('jsx-sort-prop-types', rule, {
' a: React.PropTypes.any,',
' c: React.PropTypes.any,',
' b: React.PropTypes.any',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down Expand Up @@ -217,7 +217,7 @@ ruleTester.run('jsx-sort-prop-types', rule, {
' z: React.PropTypes.string,',
' onBar: React.PropTypes.func,',
' onFoo: React.PropTypes.func',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down Expand Up @@ -377,7 +377,7 @@ ruleTester.run('jsx-sort-prop-types', rule, {
' z: React.PropTypes.any,',
' y: React.PropTypes.any,',
' a: React.PropTypes.any',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down Expand Up @@ -418,7 +418,7 @@ ruleTester.run('jsx-sort-prop-types', rule, {
' z: React.PropTypes.string,',
' onFoo: React.PropTypes.func,',
' onBar: React.PropTypes.func',
' }',
' };',
' render() {',
' return <div />;',
' }',
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ ruleTester.run('prop-types', rule, {
}, {
code: [
'class Hello {',
' method',
' method;',
'}'
].join('\n'),
parser: 'babel-eslint',
Expand Down Expand Up @@ -207,7 +207,7 @@ ruleTester.run('prop-types', rule, {
'class Hello extends React.Component {',
' static propTypes = {',
' name: React.PropTypes.string',
' }',
' };',
' render() {',
' return <div>Hello {this.props.name}</div>;',
' }',
Expand Down Expand Up @@ -685,7 +685,7 @@ ruleTester.run('prop-types', rule, {
' }',
' static propTypes = {',
' source: PropTypes.object',
' }',
' };',
'}'
].join('\n'),
parser: 'babel-eslint'
Expand All @@ -698,7 +698,7 @@ ruleTester.run('prop-types', rule, {
' }',
' static propTypes = {',
' source: PropTypes.object',
' }',
' };',
'}'
].join('\n'),
parser: 'babel-eslint'
Expand Down Expand Up @@ -974,7 +974,7 @@ ruleTester.run('prop-types', rule, {
'class Hello extends React.Component {',
' static propTypes: { ',
' firstname: React.PropTypes.string',
' }',
' };',
' render() {',
' return <div>Hello {this.props.firstname}</div>;',
' }',
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/sort-comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ ruleTester.run('sort-comp', rule, {
' render() {',
' return <div></div>',
' }',
' static displayName = \'Hello\'',
' static displayName = \'Hello\';',
'}'
].join('\n'),
parser: 'babel-eslint',
Expand Down

0 comments on commit 2c499f2

Please sign in to comment.