(props)
| 77 | let stateRef = React.createRef(); |
| 78 | |
| 79 | function Example(props) { |
| 80 | let trackRef = useRef(null); |
| 81 | let state = useSliderState({...props, numberFormatter}); |
| 82 | stateRef.current = state; |
| 83 | let {trackProps} = useSlider(props, state, trackRef); |
| 84 | return <div data-testid="track" ref={trackRef} {...trackProps} />; |
| 85 | } |
| 86 | |
| 87 | it('should allow you to set value of closest thumb by clicking on track', () => { |
| 88 | let onChangeSpy = jest.fn(); |
nothing calls this directly
no test coverage detected