element-plus/packages/components/icon/__tests__/icon.spec.ts
三咲智子 55348b30b6
style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00

16 lines
409 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`)
})
})