Files
HiveGrid-Wireframes/hivegrid-cloud/apps/web/app/components/layouts/icons/IconNotifications.test.tsx
T

16 lines
652 B
TypeScript

import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vitest";
import IconNotifications from "./IconNotifications";
describe("IconNotifications", () => {
it("forwards className onto a rendered Subframe Feather icon", () => {
const markup = renderToStaticMarkup(<IconNotifications className="size-4" />);
// Migrated to the Subframe @subframe/core Feather icon set via the shared
// icons/_feather wrapper, which forwards `className` onto the icon and
// renders an <svg> (Feather uses a 24x24 viewBox).
expect(markup).toContain("size-4");
expect(markup).toContain("<svg");
});
});