2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-05-17 06:59:40 +03:00
Files
vue2-datepicker/__test__/table-date.test.js
T
2019-11-10 17:47:30 +08:00

23 lines
459 B
JavaScript

import { mount } from '@vue/test-utils';
import TableDate from '../src/calendar/table-date.vue';
let wrapper;
afterEach(() => {
wrapper.destroy();
});
describe('TableDate', () => {
it('corrent render', () => {
wrapper = mount(TableDate, {
propsData: {
calendarYear: 2019,
calendarMonth: 9,
firstDayOfWeek: 1,
titleFormat: 'DD/MM/YYYY',
},
});
expect(wrapper.element).toMatchSnapshot();
});
});