import { jsx } from "react/jsx-runtime";
import React from "react";
import { render } from "@testing-library/react-native";
import { ThemeProvider } from "../..";
import Backdrop from "./Backdrop";
jest.useFakeTimers();
describe("<Backdrop />", () => {
  describe("Snapshots", () => {
    it("should match snapshot", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Backdrop, { title: "Find an Activity", children: "Some Content" }) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
    it("should match snapshot when visible", () => {
      const { toJSON } = render(
        /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Backdrop, { visible: true, title: "Find an Activity", children: "Some Content" }) })
      );
      expect(toJSON()).toMatchSnapshot();
    });
  });
});
