File tree 2 files changed +7
-7
lines changed
components/space/__tests__
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` Space should render correct with children 1` ] = `
4
- <div class = " ant-space ant-space-horizontal ant-space-align-center" style = " column-gap: 8px; row-gap: 8px; " >
5
- <div class = " ant-space-item" >text1</div >
4
+ <div class = " ant-space ant-space-horizontal ant-space-align-center" >
5
+ <div class = " ant-space-item" style = " margin-right: 8px; " >text1</div >
6
6
<!---->
7
- <div class = " ant-space-item" ><span >text1</span ></div >
7
+ <div class = " ant-space-item" style = " margin-right: 8px; " ><span >text1</span ></div >
8
8
<!---->
9
9
<div class = " ant-space-item" >text3</div >
10
10
<!---->
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ describe('Space', () => {
25
25
) ;
26
26
} ,
27
27
} ) ;
28
- expect ( wrapper . find ( '.ant-space' ) . element . style . columnGap ) . toBe ( '10px' ) ;
29
- expect ( wrapper . find ( '.ant-space' ) . element . style . rowGap ) . toBe ( '10px ' ) ;
28
+ expect ( wrapper . findAll ( '.ant-space-item' ) [ 0 ] . element . style . marginRight ) . toBe ( '10px' ) ;
29
+ expect ( wrapper . findAll ( '.ant-space-item' ) [ 1 ] . element . style . marginRight ) . toBe ( '' ) ;
30
30
} ) ;
31
31
32
32
it ( 'should render vertical space width customize size' , ( ) => {
@@ -40,8 +40,8 @@ describe('Space', () => {
40
40
) ;
41
41
} ,
42
42
} ) ;
43
- expect ( wrapper . find ( '.ant-space' ) . element . style . columnGap ) . toBe ( '10px' ) ;
44
- expect ( wrapper . find ( '.ant-space' ) . element . style . rowGap ) . toBe ( '10px ' ) ;
43
+ expect ( wrapper . findAll ( '.ant-space-item' ) [ 0 ] . element . style . marginBottom ) . toBe ( '10px' ) ;
44
+ expect ( wrapper . findAll ( '.ant-space-item' ) [ 1 ] . element . style . marginBottom ) . toBe ( '' ) ;
45
45
} ) ;
46
46
47
47
it ( 'should render correct with children' , ( ) => {
You can’t perform that action at this time.
0 commit comments