(props)
| 21 | describe('Picker', () => { |
| 22 | let testUtilUser = new User(); |
| 23 | function DynamicPicker(props) { |
| 24 | let {items, loadingState, onLoadMore, ...otherProps} = props; |
| 25 | return ( |
| 26 | <Picker |
| 27 | {...otherProps} |
| 28 | label="Test picker" |
| 29 | items={items} |
| 30 | loadingState={loadingState} |
| 31 | onLoadMore={onLoadMore}> |
| 32 | {(item: any) => ( |
| 33 | <PickerItem id={item.name} textValue={item.name}> |
| 34 | {item.name} |
| 35 | </PickerItem> |
| 36 | )} |
| 37 | </Picker> |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | beforeAll(function () { |
| 42 | jest.useFakeTimers(); |
nothing calls this directly
no outgoing calls
no test coverage detected