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