import { jsx } from "react/jsx-runtime";
import React from "react";
import { render } from "@testing-library/react-native";
import { UserFilled } from "@gympass/yoga-icons";
import { ThemeProvider } from "../..";
import Avatar from "./Avatar";
import Text from "../../Text";
describe("<Avatar />", () => {
  it("should match snapshot in default avatar", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { width: 78, height: 78, fill: "black" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot in default avatar with placeholder prop", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { placeholder: UserFilled }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot in circle avatar", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar.Circle, {}) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot in circle avatar with placeholder prop", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar.Circle, { placeholder: UserFilled }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot in avatar with children prop", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(Text, { children: "AL" }) }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
});
