import React from "react";
import { vi } from "vitest";
import { render } from "@testing-library/react";
import { Title } from "./index";
vi.mock("~/components/ScoreIcon", () => ({
    ScoreIcon: () => React.createElement("div", { "data-testid": "mock-score-icon" }),
}));
describe("Title", () => {
    it("renders the score icon", () => {
        const { getByTestId } = render(React.createElement(Title, { scoreKey: "pedestrian_friendly" }, "Test Title"));
        expect(getByTestId("mock-score-icon")).toBeInTheDocument();
    });
    it("renders the title text", () => {
        const { getByTestId } = render(React.createElement(Title, { scoreKey: "pedestrian_friendly" }, "Test Title"));
        expect(getByTestId("score-card-title-text")).toHaveTextContent("Test Title");
    });
});
//# sourceMappingURL=index.test.js.map