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

Function testForDefaultTag

src/testUtils.js:26–30  ·  view source on GitHub ↗
(Component, tag)

Source from the content-addressed store, hash-verified

24}
25
26export function testForDefaultTag(Component, tag) {
27 render(<Component data-testid="test" />);
28 const node = screen.getByTestId('test');
29 expect(node.tagName.toLowerCase()).toMatch(tag);
30}
31
32export function testForDefaultClass(Component, className) {
33 render(<Component data-testid="test" />);

Callers 15

Breadcrumb.spec.jsFile · 0.90
NavBrand.spec.jsFile · 0.90
List.spec.jsFile · 0.90
FormText.spec.jsFile · 0.90
Form.spec.jsFile · 0.90
FormGroup.spec.jsFile · 0.90
Badge.spec.jsFile · 0.90
CardTitle.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…