()
| 8 | describe('getFieldDecorator', () => { |
| 9 | class Test extends React.Component { |
| 10 | componentWillMount() { |
| 11 | const { getFieldDecorator } = this.props.form; |
| 12 | this.normalInput = getFieldDecorator('normal'); |
| 13 | this.requiredInput = getFieldDecorator('required', { |
| 14 | rules: [{ |
| 15 | required: true, |
| 16 | }], |
| 17 | }); |
| 18 | this.blurRequiredInput = getFieldDecorator('blurRequired', { |
| 19 | validate: [{ |
| 20 | trigger: 'onBlur', |
| 21 | rules: [{ |
| 22 | required: true, |
| 23 | }], |
| 24 | }], |
| 25 | }); |
| 26 | } |
| 27 | render() { |
| 28 | return (<div> |
| 29 | {this.normalInput( |
nothing calls this directly
no test coverage detected