"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _react = _interopRequireDefault(require("react"));
var _unit = require("../../utils/test-utils/unit");
var _SparklineChart = _interopRequireDefault(require("../SparklineChart"));
var _SparklineChartPrivateUni = require("./SparklineChart.private.uni.driver");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SparklineChart/test/SparklineChart.spec.jsx",
  _this = void 0;
var data = [{
  label: new Date('Thu Sep 4 2020'),
  value: 3
}, {
  label: new Date('Thu Sep 5 2020'),
  value: 17
}, {
  label: new Date('Thu Sep 6 2020'),
  value: 18
}];
describe(_SparklineChart["default"].displayName, function () {
  var render = (0, _unit.createRendererWithUniDriver)(_SparklineChartPrivateUni.sparklineChartPrivateDriverFactory);
  afterEach(_unit.cleanup);
  it('should render', /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
    var _render, driver;
    return _regenerator["default"].wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          _render = render(/*#__PURE__*/_react["default"].createElement(_SparklineChart["default"], {
            data: data,
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 24,
              columnNumber: 31
            }
          })), driver = _render.driver;
          _context.t0 = expect;
          _context.next = 4;
          return driver.exists();
        case 4:
          _context.t1 = _context.sent;
          (0, _context.t0)(_context.t1).toBe(true);
        case 6:
        case "end":
          return _context.stop();
      }
    }, _callee);
  })));
});