mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
20 lines
435 B
TypeScript
20 lines
435 B
TypeScript
import { mount } from '@vue/test-utils'
|
|
import Icon from '../src/index.vue'
|
|
|
|
describe('Icon.vue', () => {
|
|
test('render', () => {
|
|
const wrapper = mount(Icon, {
|
|
props: {
|
|
color: '#000000',
|
|
size: 18,
|
|
},
|
|
})
|
|
expect(wrapper.element.getAttribute('style')).toContain(
|
|
`--color: #000000`,
|
|
)
|
|
expect(wrapper.element.getAttribute('style')).toContain(
|
|
`--font-size: 18px`,
|
|
)
|
|
})
|
|
})
|