"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mountWithTheme = void 0;

var _enzyme = require("enzyme");

var _styledComponents = require("styled-components");

var _theme = _interopRequireDefault(require("../Tools/theme"));

var mountWithTheme = function mountWithTheme(children) {
  _styledComponents.ThemeConsumer._currentValue = _theme.default;
  return (0, _enzyme.mount)(children);
};

exports.mountWithTheme = mountWithTheme;