mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
|
import { mount } from '@vue/test-utils'
|
||
|
import { Col, Row } from '..'
|
||
|
|
||
|
describe('Grid', () => {
|
||
|
it('should render Col', () => {
|
||
|
const wrapper = mount(Col, {
|
||
|
propsData: {
|
||
|
span: 2,
|
||
|
},
|
||
|
})
|
||
|
expect(wrapper.html()).toMatchSnapshot()
|
||
|
})
|
||
|
it('should render Row', () => {
|
||
|
const wrapper = mount(Row)
|
||
|
expect(wrapper.html()).toMatchSnapshot()
|
||
|
})
|
||
|
})
|