mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
16 lines
319 B
TypeScript
16 lines
319 B
TypeScript
import { mount } from '@vue/test-utils'
|
|
import Avatar from '../src/index.vue'
|
|
|
|
const AXIOM = 'Rem is the best girl'
|
|
|
|
describe('Avatar.vue', () => {
|
|
test('render test', () => {
|
|
const wrapper = mount(Avatar, {
|
|
slots: {
|
|
default: AXIOM,
|
|
},
|
|
})
|
|
expect(wrapper.text()).toEqual(AXIOM)
|
|
})
|
|
})
|