Skip to content

Commit a8af8ea

Browse files
committed
[Tests] attempt to make an appveyor failure more debuggable
1 parent a7c48dd commit a8af8ea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/lib/rules/no-unused-prop-types.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1374,24 +1374,24 @@ ruleTester.run('no-unused-prop-types', rule, {
13741374
'};'
13751375
].join('\n')
13761376
}, {
1377-
// Destructured props in the `shouldComponentUpdate` method shouldn't throw errors
13781377
code: [
1378+
'// Destructured props in the `shouldComponentUpdate` method shouldn’t throw errors',
13791379
'class Hello extends Component {',
13801380
' static propTypes = {',
13811381
' something: PropTypes.bool',
13821382
' }',
1383-
' shouldComponentUpdate (nextProps, nextState) {',
1383+
' shouldComponentUpdate(nextProps, nextState) {',
13841384
' const {something} = nextProps;',
13851385
' return something;',
13861386
' }',
13871387
'}'
13881388
].join('\n'),
13891389
parser: parsers.BABEL_ESLINT
13901390
}, {
1391-
// Destructured props in the `shouldComponentUpdate` method shouldn't throw errors
13921391
code: [
1392+
'// Destructured props in the `shouldComponentUpdate` method shouldn’t throw errors',
13931393
'class Hello extends Component {',
1394-
' shouldComponentUpdate (nextProps, nextState) {',
1394+
' shouldComponentUpdate(nextProps, nextState) {',
13951395
' const {something} = nextProps;',
13961396
' return something;',
13971397
' }',
@@ -1401,13 +1401,13 @@ ruleTester.run('no-unused-prop-types', rule, {
14011401
'};'
14021402
].join('\n')
14031403
}, {
1404-
// Destructured props in `shouldComponentUpdate` shouldn't throw errors when used createReactClass
14051404
code: [
1405+
'// Destructured props in `shouldComponentUpdate` shouldn’t throw errors when used with createReactClass',
14061406
'var Hello = createReactClass({',
14071407
' propTypes: {',
14081408
' something: PropTypes.bool,',
14091409
' },',
1410-
' shouldComponentUpdate (nextProps, nextState) {',
1410+
' shouldComponentUpdate(nextProps, nextState) {',
14111411
' const {something} = nextProps;',
14121412
' return something;',
14131413
' }',
@@ -1868,8 +1868,8 @@ ruleTester.run('no-unused-prop-types', rule, {
18681868
parser: parsers.BABEL_ESLINT
18691869
}, {
18701870
code: [
1871-
'class Hello extends Component {',
1872-
' shouldComponentUpdate (props) {',
1871+
'class HelloFooBar extends Component {',
1872+
' shouldComponentUpdate(props) {',
18731873
' if (props.foo) {',
18741874
' return true;',
18751875
' }',
@@ -1879,7 +1879,7 @@ ruleTester.run('no-unused-prop-types', rule, {
18791879
' return (<div>{this.props.bar}</div>);',
18801880
' }',
18811881
'}',
1882-
'Hello.propTypes = {',
1882+
'HelloFooBar.propTypes = {',
18831883
' foo: PropTypes.string,',
18841884
' bar: PropTypes.string,',
18851885
'};'

0 commit comments

Comments
 (0)