Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Diana Suvorova authored and Diana Suvorova committed Jul 15, 2017
1 parent a8f2fdb commit 8cde4a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/lib/rules/no-unused-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -1319,16 +1319,15 @@ ruleTester.run('no-unused-prop-types', rule, {
code: [
'const PagingBlock = function(props) {',
' return (',
' <SomeComponent {...props} />',
' <SomeChild {...props} />',
' );',
'};',

'PagingBlock.propTypes = {',
' nextPage: PropTypes.func.isRequired,',
' previousPage: PropTypes.func.isRequired,',
'};'
].join('\n'),
parserOptions: Object.assign({}, parserOptions, {ecmaVersion: 2017})
].join('\n')
}, {
code: [
'class Hello extends Component {',
Expand Down

0 comments on commit 8cde4a1

Please sign in to comment.