(body)
| 26 | } |
| 27 | |
| 28 | function wrapComponent(body) { |
| 29 | return `\ |
| 30 | import React from 'react'; |
| 31 | |
| 32 | export default class MyComponent extends React.Component { |
| 33 | /* eslint no-empty-function: 0, class-methods-use-this: 0 */ |
| 34 | ${body}} |
| 35 | `; |
| 36 | } |
| 37 | |
| 38 | test('validate react methods order', (t) => { |
| 39 | t.test('make sure our eslintrc has React and JSX linting dependencies', (t) => { |