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-native";
import { ThemeProvider } from "../../..";
import EventCard from ".";
const defaultProps = {
  event: {
    name: "Yoga Class",
    place: "Gympass",
    time: "19 am"
  },
  date: {
    day: "19",
    dayOfWeek: "thu",
    month: "dec"
  }
};
describe("<EventCard />", () => {
  describe("Snapshots", () => {
    it("should match snapshot with full EventCard", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(EventCard, __spreadValues({}, defaultProps)) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
    it("should match snapshot of small EventCard with event indicator disabled", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(EventCard, __spreadProps(__spreadValues({}, defaultProps), { event: false, small: true, onPress: () => {
        } })) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
    it("should match snapshot of small EventCard with event indicator enabled", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(EventCard, __spreadProps(__spreadValues({}, defaultProps), { small: true, onPress: () => {
        } })) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
    it("should match snapshot of small EventCard active", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(EventCard, __spreadProps(__spreadValues({}, defaultProps), { small: true, active: true, onPress: () => {
        } })) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
    it("should match snapshot of small EventCard with day of week and without indicator", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(EventCard, __spreadProps(__spreadValues({}, defaultProps), { small: true })) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
  });
});
