2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-05-17 14:49:39 +03:00
Files
2020-11-16 14:18:21 +08:00

21 lines
427 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: {
calendar: new Date(2019, 9, 1, 0, 0, 0),
titleFormat: 'DD/MM/YYYY',
},
});
expect(wrapper.element).toMatchSnapshot();
});
});