| 46 | |
| 47 | it('provides theme with hook', () => { |
| 48 | const PropsChecker = props => { |
| 49 | const theme = useTheme(props.theme); |
| 50 | |
| 51 | expect(typeof theme).toBe('object'); |
| 52 | expect(theme).toEqual(darkTheme); |
| 53 | return null; |
| 54 | }; |
| 55 | |
| 56 | ReactDOM.render( |
| 57 | <ThemeProvider> |
nothing calls this directly
no test coverage detected
searching dependent graphs…