automationAddScheduleIcon.test.ts 624 B

123456789101112131415
  1. import { createElement } from "react";
  2. import { renderToStaticMarkup } from "react-dom/server";
  3. import { describe, expect, it } from "vitest";
  4. import { AutomationAddScheduleIcon } from "@/settings/AutomationDesignPrimitives.js";
  5. describe("AutomationAddScheduleIcon", () => {
  6. it("uses the shared Lucide Plus geometry", () => {
  7. const html = renderToStaticMarkup(createElement(AutomationAddScheduleIcon));
  8. expect(html).toContain('viewBox="0 0 24 24"');
  9. expect(html).toContain('class="lucide lucide-plus"');
  10. expect(html).toContain('stroke-width="2"');
  11. expect(html).not.toContain("mask-image");
  12. });
  13. });