import React from "react";
import { render } from "@testing-library/react-native";
import { ThemeProvider } from "../../../theme/src/theme-context";
import Spacer from "./spacer";
import Box from "../box/box";
import Text from "../text/text";
jest.useFakeTimers();
describe("Atoms/Spacer", () => {
  it("passes the snapshot test", () => {
    const tree = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Box, {
      flexDirection: "row"
    }, /*#__PURE__*/React.createElement(Box, {
      p: "l",
      bgColor: "danger.400"
    }, /*#__PURE__*/React.createElement(Text, null, "Box 1")), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Box, {
      p: "l",
      bgColor: "success.400"
    }, /*#__PURE__*/React.createElement(Text, null, "Box 2"))))).toJSON();
    expect(tree).toMatchSnapshot();
  });
});
//# sourceMappingURL=spacer.spec.js.map