vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
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.
36 lines
814 B
36 lines
814 B
import { mount } from '@vue/test-utils'; |
|
import { Col, Row } from '..'; |
|
import mountTest from '../../../tests/shared/mountTest'; |
|
|
|
describe('Grid', () => { |
|
mountTest(Row); |
|
mountTest(Col); |
|
it('should render Col', () => { |
|
const wrapper = mount(Col, { |
|
props: { |
|
span: 2, |
|
}, |
|
}); |
|
expect(wrapper.html()).toMatchSnapshot(); |
|
}); |
|
it('should render Row', () => { |
|
const wrapper = mount(Row); |
|
expect(wrapper.html()).toMatchSnapshot(); |
|
}); |
|
|
|
it('renders wrapped Col correctly', () => { |
|
const wrapper = mount({ |
|
render() { |
|
return ( |
|
<Row gutter={20}> |
|
<div> |
|
<Col span={12} /> |
|
</div> |
|
<Col span={12} /> |
|
</Row> |
|
); |
|
}, |
|
}); |
|
expect(wrapper.html()).toMatchSnapshot(); |
|
}); |
|
});
|
|
|