import React from "react";
import { render, screen } from "@testing-library/react";
import { ReadMore } from "../ReadMore";
describe("ReadMore component", () => {
    it("renders children", async () => {
        render(React.createElement(ReadMore, { id: "readmoretest", expandLabel: "expand", collapseLabel: "hide" }, "Hidden children"));
        expect(await screen.getByText(/Hidden children/)).toBeInTheDocument();
    });
});
