import { render, screen } from "@testing-library/react";
import { Title } from ".";
describe("Title", () => {
it("should render the correct title", () => {
render(
);
expect(screen.getByText("General Liability")).toBeInTheDocument();
});
it("should render the correct description", () => {
render();
expect(screen.getByText("Business Co.")).toBeInTheDocument();
});
describe("given elementType", () => {
it("is not applied as element attribute", () => {
const { container } = render(
,
);
expect(container.firstChild).not.toHaveAttribute("elementtype", "ul");
});
});
});