mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[new feature] Uploader: support isImage flag (#4072)
This commit is contained in:
@@ -10,5 +10,6 @@ test('isImageFile', () => {
|
||||
expect(isImageFile({ file: { type: 'application/pdf' } })).toBeFalsy();
|
||||
expect(isImageFile({ content: 'data:image/xxx' })).toBeTruthy();
|
||||
expect(isImageFile({ content: 'data:application/xxx' })).toBeFalsy();
|
||||
expect(isImageFile({ isImage: true })).toBeTruthy();
|
||||
expect(isImageFile({})).toBeFalsy();
|
||||
});
|
||||
|
Reference in New Issue
Block a user