(props)
| 34 | |
| 35 | it('should render custom element', () => { |
| 36 | function Link(props) { |
| 37 | return ( |
| 38 | <a href="/home" {...props}> |
| 39 | {props.children} |
| 40 | </a> |
| 41 | ); |
| 42 | } |
| 43 | render(<DropdownItem tag={Link}>Home</DropdownItem>); |
| 44 | expect(screen.getByText('Home')).toHaveAttribute('href', '/home'); |
| 45 | expect(screen.getByText('Home').tagName.toLowerCase()).toMatch('a'); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…