MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / testForCustomTag

Function testForCustomTag

src/testUtils.js:12–16  ·  view source on GitHub ↗
(Component, props = {}, tag = 'h1')

Source from the content-addressed store, hash-verified

10}
11
12export function testForCustomTag(Component, props = {}, tag = 'h1') {
13 render(<Component {...props} tag={tag} data-testid="test" />);
14 const node = screen.getByTestId('test');
15 expect(node.tagName.toLowerCase()).toMatch(tag);
16}
17
18export function testForCustomAttribute(Component, props = {}) {
19 render(

Callers 15

CardGroup.spec.jsFile · 0.90
CardHeader.spec.jsFile · 0.90
Breadcrumb.spec.jsFile · 0.90
Card.spec.jsFile · 0.90
List.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…