Skip to content

Commit

Permalink
fix: 修复测试用例无法通过问题
Browse files Browse the repository at this point in the history
  • Loading branch information
developeryvan committed Sep 16, 2023
1 parent bc82209 commit ba647cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/__VUE/uploader/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('should render base uploader props', async () => {
const toast = wrapper.find('.nut-uploader__input');
expect(toast.attributes().capture).toBe('camera');
expect(toast.attributes().name).toBe('files');
expect(toast.attributes().accept).toBe('.jpg');
expect(toast.attributes().accept).toBe('image/*');
expect(toast.exists()).toBe(true);
toast.trigger('click');
expect(wrapper.emitted('change'));
Expand Down

0 comments on commit ba647cc

Please sign in to comment.