(props)
| 34 | } |
| 35 | |
| 36 | function Example(props) { |
| 37 | return ( |
| 38 | <OverlayProvider data-testid="root-provider"> |
| 39 | This is the root provider. |
| 40 | {props.showModal && <Modal container={props.container}>{props.children}</Modal>} |
| 41 | </OverlayProvider> |
| 42 | ); |
| 43 | } |
| 44 | |
| 45 | describe('useModal', function () { |
| 46 | it('should set aria-hidden on parent providers on mount and remove on unmount', function () { |
nothing calls this directly
no outgoing calls
no test coverage detected