()
| 151 | describe('Context propagation', () => { |
| 152 | it('preserves the ActionButton context from its parent', () => { |
| 153 | function ContextActionButton() { |
| 154 | let {staticColor} = useSlottedContext(ActionButtonContext) || {}; |
| 155 | return ( |
| 156 | <ActionButton data-static-color={staticColor} aria-label="Menu button"> |
| 157 | Menu button |
| 158 | </ActionButton> |
| 159 | ); |
| 160 | } |
| 161 | |
| 162 | let {getByRole} = render( |
| 163 | <Provider values={[[ActionButtonContext, {staticColor: 'auto'}]]}> |
nothing calls this directly
no test coverage detected