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

25 lines
480 B
JavaScript

import { mount } from '@vue/test-utils';
import TableMonth from '../src/calendar/table-month.vue';
let wrapper;
afterEach(() => {
wrapper.destroy();
});
describe('TableMonth', () => {
it('correct render', () => {
wrapper = mount(TableMonth, {
propsData: {
getClasses: month => {
if (month === 9) {
return 'active';
}
return '';
},
},
});
expect(wrapper.element).toMatchSnapshot();
});
});