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

Function testForDefaultClass

src/testUtils.js:32–36  ·  view source on GitHub ↗
(Component, className)

Source from the content-addressed store, hash-verified

30}
31
32export function testForDefaultClass(Component, className) {
33 render(<Component data-testid="test" />);
34 const node = screen.getByTestId('test');
35 expect(node).toHaveClass(className);
36}
37
38export function testForChildrenInComponent(Component) {
39 render(<Component>Yo!</Component>);

Callers 15

CardGroup.spec.jsFile · 0.90
CardHeader.spec.jsFile · 0.90
Card.spec.jsFile · 0.90
NavBrand.spec.jsFile · 0.90
Row.spec.jsFile · 0.90
CardLink.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…