element-plus/packages/icon/__tests__/icon.spec.ts

14 lines
286 B
TypeScript
Raw Normal View History

2020-08-04 11:09:19 +08:00
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')
})
})