14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
|
import { mount } from '@vue/test-utils'
|
||
|
import Icon from '..'
|
||
|
|
||
|
describe('Icon', () => {
|
||
|
it('should render to a <i class="xxx"></i>', () => {
|
||
|
const wrapper = mount({
|
||
|
render (h) {
|
||
|
return <Icon type='appstore' class='my-icon-classname' />
|
||
|
},
|
||
|
})
|
||
|
expect(wrapper.html()).toMatchSnapshot()
|
||
|
})
|
||
|
})
|