Browse Source

test: update grid (#2502)

pull/2510/head
zkwolf 4 years ago committed by GitHub
parent
commit
5a0bb6d50e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      components/grid/__tests__/__snapshots__/index.test.js.snap
  2. 2
      components/grid/__tests__/index.test.js

20
components/grid/__tests__/__snapshots__/index.test.js.snap

@ -3,12 +3,24 @@
exports[`Grid renders wrapped Col correctly 1`] = `
<div class="ant-row" style="margin-left: -10px; margin-right: -10px;">
<div>
<div class="ant-col ant-col-12" style="padding-left: 10px; padding-right: 10px;"></div>
<div class="ant-col ant-col-12" style="padding-left: 10px; padding-right: 10px;">
<!---->
</div>
</div>
<div class="ant-col ant-col-12" style="padding-left: 10px; padding-right: 10px;">
<!---->
</div>
<div class="ant-col ant-col-12" style="padding-left: 10px; padding-right: 10px;"></div>
</div>
`;
exports[`Grid should render Col 1`] = `<div class="ant-col ant-col-2"></div>`;
exports[`Grid should render Col 1`] = `
<div class="ant-col ant-col-2">
<!---->
</div>
`;
exports[`Grid should render Row 1`] = `<div class="ant-row"></div>`;
exports[`Grid should render Row 1`] = `
<div class="ant-row">
<!---->
</div>
`;

2
components/grid/__tests__/index.test.js

@ -7,7 +7,7 @@ describe('Grid', () => {
mountTest(Col);
it('should render Col', () => {
const wrapper = mount(Col, {
propsData: {
props: {
span: 2,
},
});

Loading…
Cancel
Save