"use strict";

var _default = require("../../../theme/default");
var _gap = _interopRequireDefault(require("./gap"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
it("renders", function () {
  expect((0, _gap["default"])({
    theme: _default.DefaultTheme
  })).toBe("");
});
it("renders gap", function () {
  expect((0, _gap["default"])({
    theme: _default.DefaultTheme,
    gap: 2
  })).toBe("\n    &> *:not(:last-child) {\n      margin-right: " + _default.DefaultTheme.constants.SIZE_SUB_UNIT * 2 + "px;\n    }\n  ");
});
it("renders gap", function () {
  expect((0, _gap["default"])({
    theme: _default.DefaultTheme,
    gap: 2,
    column: true
  })).toBe("\n    &> *:not(:last-child) {\n      margin-bottom: " + _default.DefaultTheme.constants.SIZE_SUB_UNIT * 2 + "px;\n    }\n  ");
});
it("renders gap with rowReversed", function () {
  expect((0, _gap["default"])({
    theme: _default.DefaultTheme,
    gap: 2,
    rowReverse: true
  })).toBe("\n    &> *:not(:last-child) {\n      margin-left: " + _default.DefaultTheme.constants.SIZE_SUB_UNIT * 2 + "px;\n    }\n  ");
});
it("renders invalid", function () {
  expect((0, _gap["default"])({
    theme: _default.DefaultTheme,
    gap: "invalid"
  })).toBe("");
});