({ id, ...anchorParams })
| 7 | jest.useRealTimers() |
| 8 | |
| 9 | const TooltipAttrs = ({ id, ...anchorParams }) => ( |
| 10 | <> |
| 11 | <span data-tooltip-id={id} {...anchorParams}> |
| 12 | Lorem Ipsum |
| 13 | </span> |
| 14 | <Tooltip id={id} /> |
| 15 | </> |
| 16 | ) |
| 17 | |
| 18 | describe('tooltip attributes', () => { |
| 19 | test('tooltip without element reference', async () => { |
nothing calls this directly
no outgoing calls
no test coverage detected