ui-neu
Version:
Neu UI, a responsive React component library.
23 lines • 773 B
JavaScript
import React from "react";
import { act } from "react-dom/test-utils";
import { render, unmountComponentAtNode } from "react-dom";
import { CardBody } from "./CardBody";
describe("CardBody test suite", function () {
var container = null;
beforeEach(function () {
container = document.createElement("div");
document.body.appendChild(container);
});
afterEach(function () {
unmountComponentAtNode(container);
container.remove();
container = null;
});
it("renders CardBody children props", function () {
var children = "I'm a Child to be rendered in the CardBody";
act(function () {
render( /*#__PURE__*/React.createElement(CardBody, null, children), container);
});
expect(container.textContent).toBe(children);
});
});