"use strict";

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

var _react = require("@testing-library/react");

var _react2 = _interopRequireDefault(require("react"));

var _index = _interopRequireDefault(require("../index"));

describe('DatePickerView', function () {
  afterEach(function () {
    jest.restoreAllMocks();
  });
  it('snapshot', function () {
    var wrapper = (0, _react.render)( /*#__PURE__*/_react2.default.createElement(_index.default, {
      defaultValue: new Date('2017/12/3 14:00')
    }));
    expect(wrapper.asFragment()).toMatchSnapshot();
  });
  it('meridiem hour snapshot', function () {
    var wrapper = (0, _react.render)( /*#__PURE__*/_react2.default.createElement(_index.default, {
      defaultValue: new Date('2017/12/3 14:00'),
      columnType: ['meridiem', 'hour', 'minute']
    }));
    expect(wrapper.asFragment()).toMatchSnapshot();
  });
  it('week snapshot', function () {
    var wrapper = (0, _react.render)( /*#__PURE__*/_react2.default.createElement(_index.default, {
      defaultValue: new Date('2017/12/3 14:00'),
      columnType: ['year', 'week', 'week-day']
    }));
    expect(wrapper.asFragment()).toMatchSnapshot();
  });
});