import React from "react";
import { render } from "@testing-library/react";
import { Description } from "./index";
describe("Description", () => {
    it("should render children when visible", () => {
        const { getByTestId } = render(React.createElement(Description, { isVisible: true }, "This is a description"));
        expect(getByTestId("score-card-description")).toBeInTheDocument();
    });
    it("should not render children when not visible", () => {
        const { queryByTestId } = render(React.createElement(Description, { isVisible: false }, "This is a description"));
        expect(queryByTestId("score-card-description")).not.toBeInTheDocument();
    });
});
//# sourceMappingURL=index.test.js.map