test: add grid test
parent
a39aada80a
commit
54c695a7f4
|
@ -0,0 +1,5 @@
|
||||||
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
|
exports[`Grid should render Col 1`] = `<div class="ant-col-2"></div>`;
|
||||||
|
|
||||||
|
exports[`Grid should render Row 1`] = `<div class="ant-row"></div>`;
|
|
@ -0,0 +1,17 @@
|
||||||
|
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()
|
||||||
|
})
|
||||||
|
})
|
Loading…
Reference in New Issue