feat(Calendar): add month-show event (#6292)

This commit is contained in:
neverland
2020-05-17 20:28:53 +08:00
committed by GitHub
parent 6870bdcbc2
commit f2ec0c5a4d
4 changed files with 21 additions and 1 deletions
+11
View File
@@ -180,3 +180,14 @@ test('lazy-render prop', () => {
expect(wrapper).toMatchSnapshot();
});
test.only('month-show event', async () => {
const wrapper = mount(Calendar, {
propsData: {
value: true,
},
});
await later();
expect(wrapper.emitted('month-show')).toBeTruthy();
});