You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/icon/__tests__/index.test.js

14 lines
325 B

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()
})
})