test: udpate space test
parent
e64fb33905
commit
40c4b80f69
|
@ -1,10 +1,10 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Space should render correct with children 1`] = `
|
||||
<div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 8px; row-gap: 8px;">
|
||||
<div class="ant-space-item">text1</div>
|
||||
<div class="ant-space ant-space-horizontal ant-space-align-center">
|
||||
<div class="ant-space-item" style="margin-right: 8px;">text1</div>
|
||||
<!---->
|
||||
<div class="ant-space-item"><span>text1</span></div>
|
||||
<div class="ant-space-item" style="margin-right: 8px;"><span>text1</span></div>
|
||||
<!---->
|
||||
<div class="ant-space-item">text3</div>
|
||||
<!---->
|
||||
|
|
|
@ -25,8 +25,8 @@ describe('Space', () => {
|
|||
);
|
||||
},
|
||||
});
|
||||
expect(wrapper.find('.ant-space').element.style.columnGap).toBe('10px');
|
||||
expect(wrapper.find('.ant-space').element.style.rowGap).toBe('10px');
|
||||
expect(wrapper.findAll('.ant-space-item')[0].element.style.marginRight).toBe('10px');
|
||||
expect(wrapper.findAll('.ant-space-item')[1].element.style.marginRight).toBe('');
|
||||
});
|
||||
|
||||
it('should render vertical space width customize size', () => {
|
||||
|
@ -40,8 +40,8 @@ describe('Space', () => {
|
|||
);
|
||||
},
|
||||
});
|
||||
expect(wrapper.find('.ant-space').element.style.columnGap).toBe('10px');
|
||||
expect(wrapper.find('.ant-space').element.style.rowGap).toBe('10px');
|
||||
expect(wrapper.findAll('.ant-space-item')[0].element.style.marginBottom).toBe('10px');
|
||||
expect(wrapper.findAll('.ant-space-item')[1].element.style.marginBottom).toBe('');
|
||||
});
|
||||
|
||||
it('should render correct with children', () => {
|
||||
|
|
Loading…
Reference in New Issue