(props?: Partial<SelectProps<any>>)
| 19 | const OPTION_2 = { bambooLabel: 'Little', bambooValue: 'little' }; |
| 20 | |
| 21 | function mountSelect(props?: Partial<SelectProps<any>>) { |
| 22 | return render( |
| 23 | <Select |
| 24 | open |
| 25 | options={ |
| 26 | [ |
| 27 | { |
| 28 | bambooLabel: 'Bamboo', |
| 29 | bambooChildren: [OPTION_1, OPTION_2], |
| 30 | }, |
| 31 | ] as any |
| 32 | } |
| 33 | fieldNames={{ |
| 34 | label: 'bambooLabel', |
| 35 | value: 'bambooValue', |
| 36 | options: 'bambooChildren', |
| 37 | }} |
| 38 | {...props} |
| 39 | />, |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | it('fieldNames should work', () => { |
| 44 | const onChange = jest.fn(); |
no outgoing calls
no test coverage detected
searching dependent graphs…