()
| 54 | const user = userEvent.setup(); |
| 55 | |
| 56 | const Demo: FC = () => { |
| 57 | const [value, setValue] = useState<string>(''); |
| 58 | |
| 59 | const handleReset = () => { |
| 60 | setValue(''); |
| 61 | }; |
| 62 | |
| 63 | const handleChange = (e: ChangeEvent<HTMLInputElement>) => { |
| 64 | onChange(); |
| 65 | setValue(e.target.value); |
| 66 | }; |
| 67 | |
| 68 | return ( |
| 69 | <BaseInput |
| 70 | prefixCls="rc-input" |
| 71 | allowClear={{ clearIcon: '✖' }} |
| 72 | value={value} |
| 73 | handleReset={handleReset} |
| 74 | > |
| 75 | <input onChange={handleChange} onBlur={onBlur} onFocus={onFocus} /> |
| 76 | </BaseInput> |
| 77 | ); |
| 78 | }; |
| 79 | |
| 80 | it('By click', () => { |
| 81 | const { container } = render(<Demo />); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…