"use strict";

var _react = _interopRequireDefault(require("react"));
var _testUtilities = require("testUtilities");
var _index = _interopRequireDefault(require("./index"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
describe("Box functionality", function () {
  it("renders", function () {
    var _renderWithProviders = (0, _testUtilities.renderWithProviders)( /*#__PURE__*/_react["default"].createElement(_index["default"], null, "Content")),
      getByText = _renderWithProviders.getByText;
    expect(getByText("Content")).toBeInTheDocument();
  });
  it("renders with position absolute", function () {
    var _renderWithProviders2 = (0, _testUtilities.renderWithProviders)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
        position: "absolute",
        top: "1px",
        right: "2px"
      }, "Content")),
      getByText = _renderWithProviders2.getByText;
    expect(getByText("Content")).toHaveStyleRule("position", "absolute");
    expect(getByText("Content")).toHaveStyleRule("top", "1px");
    expect(getByText("Content")).toHaveStyleRule("right", "2px");
  });
});