"use strict";

var _react = _interopRequireDefault(require("react"));
var _reactNative = require("@testing-library/react-native");
var _themeContext = require("../../../theme/src/theme-context");
var _spacer = _interopRequireDefault(require("./spacer"));
var _box = _interopRequireDefault(require("../box/box"));
var _text = _interopRequireDefault(require("../text/text"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
jest.useFakeTimers();
describe("Atoms/Spacer", () => {
  it("passes the snapshot test", () => {
    const tree = (0, _reactNative.render)( /*#__PURE__*/_react.default.createElement(_themeContext.ThemeProvider, null, /*#__PURE__*/_react.default.createElement(_box.default, {
      flexDirection: "row"
    }, /*#__PURE__*/_react.default.createElement(_box.default, {
      p: "l",
      bgColor: "danger.400"
    }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Box 1")), /*#__PURE__*/_react.default.createElement(_spacer.default, null), /*#__PURE__*/_react.default.createElement(_box.default, {
      p: "l",
      bgColor: "success.400"
    }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Box 2"))))).toJSON();
    expect(tree).toMatchSnapshot();
  });
});
//# sourceMappingURL=spacer.spec.js.map