mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[Improvement] add utils test cases (#380)
This commit is contained in:
@@ -93,4 +93,16 @@ describe('Uploader', () => {
|
||||
expect(wrapper.contains('input')).to.equal(true);
|
||||
expect(wrapper.vm.onValueChange({ target: { files: [new File([], '/Users')] }})).to.equal(undefined);
|
||||
});
|
||||
|
||||
it('unknown resultType', () => {
|
||||
wrapper = mount(Uploader, {
|
||||
propsData: {
|
||||
disabled: false,
|
||||
resultType: 'xxxx'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.contains('input')).to.equal(true);
|
||||
expect(wrapper.vm.onValueChange({ target: { files: [new File([], '/Users')] }})).to.equal(undefined);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user