(props)
| 18 | import {useSpinButton} from '../../src/spinbutton/useSpinButton'; |
| 19 | |
| 20 | function Example(props) { |
| 21 | let {spinButtonProps} = useSpinButton(props); |
| 22 | return ( |
| 23 | <div {...spinButtonProps} tabIndex={-1} data-testid="test"> |
| 24 | {props.children} |
| 25 | </div> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | describe('useSpinButton', function () { |
| 30 | it('should have role="spinbutton" and aria props', function () { |
nothing calls this directly
no test coverage detected