mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-23 13:31:06 +08:00
test: fix
This commit is contained in:
parent
bc2ad19f89
commit
2e2ca7ec9e
@ -106,12 +106,13 @@ describe('n-upload', () => {
|
||||
const wrapper = mount(NUpload, {
|
||||
props: {
|
||||
listType: 'image',
|
||||
createThumbnailUrl
|
||||
createThumbnailUrl,
|
||||
// It should be aligned with prop's default implementation
|
||||
shouldUseThumbnailUrl: () => true
|
||||
}
|
||||
})
|
||||
const input = wrapper.find('input')
|
||||
const fileList = [new File(['index'], 'file.txt')]
|
||||
|
||||
const fileList = [new File(['index'], 'file.jpeg')]
|
||||
getMockFile(input.element, fileList)
|
||||
await input.trigger('change')
|
||||
await sleep(0)
|
||||
|
Loading…
Reference in New Issue
Block a user