import { createRef } from "react";
import { render } from "@testing-library/react";
import { Logo } from ".";
const MOBIUS_CLASS_NAME = "mobius";
const LOGO_CLASS_NAME = "mobius-logo";
describe("Logo", () => {
it("should render without errors", () => {
render();
});
describe("classes", () => {
it("should render with Mobius classes", () => {
const { container } = render();
expect(container.firstChild).toHaveClass(MOBIUS_CLASS_NAME);
expect(container.firstChild).toHaveClass(LOGO_CLASS_NAME);
});
it("should pass custom class name", () => {
const customClassName = "custom-class-name";
const { container } = render();
expect(container.firstChild).toHaveClass(customClassName);
});
});
describe("semantic HTML and accessibility", () => {
it("renders an