2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-21 02:00:35 +03:00

refactor: 3.0

This commit is contained in:
mengxiong10
2019-11-10 17:47:30 +08:00
parent 72024440d7
commit 4875dc6b3d
165 changed files with 23248 additions and 21723 deletions
+24
View File
@@ -0,0 +1,24 @@
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();
});
});