()
| 51 | })( |
| 52 | class extends React.Component { |
| 53 | render() { |
| 54 | const { form, mode } = this.props; |
| 55 | const { getFieldDecorator } = form; |
| 56 | return ( |
| 57 | <form> |
| 58 | <span>text content</span> |
| 59 | {mode ? getFieldDecorator('input1')(<input id="text1" />) : null} |
| 60 | <span>text content</span> |
| 61 | <span>text content</span> |
| 62 | <span>text content</span> |
| 63 | {mode ? getFieldDecorator('input2')(<input id="text2" />) : null} |
| 64 | <span>text content</span> |
| 65 | </form> |
| 66 | ); |
| 67 | } |
| 68 | } |
| 69 | ); |
| 70 | const wrapper = mount(<Test mode />); |
nothing calls this directly
no test coverage detected