mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import Avatar from '..'
|
|
|
|
describe('Avatar Render', () => {
|
|
it('Render long string correctly', () => {
|
|
const wrapper = mount(Avatar, {
|
|
slots: {
|
|
default: 'TestString',
|
|
},
|
|
})
|
|
const children = wrapper.findAll('.ant-avatar-string')
|
|
expect(children.length).toBe(1)
|
|
})
|
|
})
|