2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-09 16:12:27 +03:00
Files
mengxiong10 1325d41225 vue3 base
2020-11-11 16:56:17 +08:00

26 lines
527 B
JavaScript

import { mount } from '@vue/test-utils';
import TableMonth from '../src/calendar/table-month';
let wrapper;
afterEach(() => {
wrapper.unmount();
});
describe('TableMonth', () => {
it('correct render', () => {
wrapper = mount(TableMonth, {
props: {
calendar: new Date(2019, 9, 1, 0, 0, 0),
getCellClasses: (month) => {
if (month === 9) {
return 'active';
}
return '';
},
},
});
expect(wrapper.element).toMatchSnapshot();
});
});