mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
14 lines
286 B
TypeScript
14 lines
286 B
TypeScript
|
import { mount } from '@vue/test-utils'
|
||
|
import Icon from '../src/index.vue'
|
||
|
|
||
|
describe('Icon.vue', () => {
|
||
|
test('render', () => {
|
||
|
const wrapper = mount(Icon, {
|
||
|
props: {
|
||
|
name: 'search',
|
||
|
},
|
||
|
})
|
||
|
expect(wrapper.classes()).toContain('el-icon-search')
|
||
|
})
|
||
|
})
|