var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {}))
    if (__hasOwnProp.call(b, prop))
      __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols)
    for (var prop of __getOwnPropSymbols(b)) {
      if (__propIsEnum.call(b, prop))
        __defNormalProp(a, prop, b[prop]);
    }
  return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
import { jsx } from "react/jsx-runtime";
import React from "react";
import { render } from "@testing-library/react";
import { ThemeProvider, Icon } from "../..";
const Circle = (props) => /* @__PURE__ */ jsx("svg", __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx("circle", { cx: "16", cy: "16", r: "16" }) }));
describe("Snapshots", () => {
  it("should match snapshot", () => {
    const { container } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Icon, { as: Circle, width: "small", height: "small", fill: "stamina" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with size prop", () => {
    const { container } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Icon, { as: Circle, size: "small", fill: "stamina" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with system props", () => {
    const { container } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(
        Icon,
        {
          as: Circle,
          size: "small",
          fill: "stamina",
          margin: "medium",
          elevation: "medium"
        }
      ) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with acessible props", () => {
    const { container } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(
        Icon,
        {
          as: Circle,
          size: "small",
          fill: "stamina",
          title: "Circle icon",
          description: "This is a circular icon",
          ariaLabel: "circleIcon"
        }
      ) })
    );
    expect(container).toMatchSnapshot();
  });
});
