chore: bump @vant/cli@3.5.1 (#8221)

This commit is contained in:
neverland
2021-02-26 10:24:53 +08:00
committed by GitHub
parent 6aa2beeda4
commit 1dbe9c54eb
23 changed files with 403 additions and 203 deletions
+5 -5
View File
@@ -18,7 +18,7 @@ test('should render ContactList correctly', () => {
test('should emit add event when add button is clicked', () => {
const wrapper = mount(ContactList);
wrapper.find('.van-contact-list__add').trigger('click');
expect(wrapper.emitted('add').length).toEqual(1);
expect(wrapper.emitted('add')!.length).toEqual(1);
});
test('should emit select event when radio is clicked', () => {
@@ -30,8 +30,8 @@ test('should emit select event when radio is clicked', () => {
wrapper.find('.van-radio__icon').trigger('click');
expect(wrapper.emitted('select').length).toEqual(1);
expect(wrapper.emitted('select')[0]).toEqual([contactInfo, 0]);
expect(wrapper.emitted('select')!.length).toEqual(1);
expect(wrapper.emitted('select')![0]).toEqual([contactInfo, 0]);
});
test('should emit edit event when edit icon is clicked', () => {
@@ -43,6 +43,6 @@ test('should emit edit event when edit icon is clicked', () => {
wrapper.find('.van-contact-list__edit').trigger('click');
expect(wrapper.emitted('edit').length).toEqual(1);
expect(wrapper.emitted('edit')[0]).toEqual([contactInfo, 0]);
expect(wrapper.emitted('edit')!.length).toEqual(1);
expect(wrapper.emitted('edit')![0]).toEqual([contactInfo, 0]);
});