ant-design-vue/components/avatar/__tests__/Avatar.test.js
2018-05-18 10:10:17 +08:00

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)
})
})