import React from "react";
import { render } from "@testing-library/react";
import { TitleHeader } from "./index";
describe("TitleHeader", () => {
    it("renders the title when a string is provided", () => {
        const { getByTestId } = render(React.createElement(TitleHeader, { title: "Test Title" }));
        const titleElement = getByTestId("sdk-title");
        expect(titleElement).toBeInTheDocument();
        expect(titleElement).toHaveTextContent("Test Title");
    });
    it("renders null when title is false", () => {
        const { queryByTestId } = render(React.createElement(TitleHeader, { title: false }));
        const titleElement = queryByTestId("sdk-title");
        expect(titleElement).not.toBeInTheDocument();
    });
});
//# sourceMappingURL=index.test.js.map