mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
test(image): inherit attrs
This commit is contained in:
parent
cfff4e8b82
commit
14a8bed3cd
@ -64,4 +64,13 @@ describe('n-image', () => {
|
||||
|
||||
expect(document.querySelector('.n-image-preview-toolbar')).not.toEqual(null)
|
||||
})
|
||||
|
||||
it('should inherit attrs', () => {
|
||||
const wrapper = mount(NImage, {
|
||||
attrs: {
|
||||
'data-cool': true
|
||||
}
|
||||
})
|
||||
expect(wrapper.find('[data-cool]').exists()).toEqual(true)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user