File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -73,27 +73,31 @@ it('transforms flex shorthand with flex-basis set to auto', () => {
73
73
expect ( transformCss ( [ [ 'flex' , '0 1 auto' ] ] ) ) . toEqual ( {
74
74
flexGrow : 0 ,
75
75
flexShrink : 1 ,
76
+ flexBasis : 'auto' ,
76
77
} )
77
78
} )
78
79
79
80
it ( 'transforms flex shorthand with flex-basis set to auto appearing first' , ( ) => {
80
81
expect ( transformCss ( [ [ 'flex' , 'auto 0 1' ] ] ) ) . toEqual ( {
81
82
flexGrow : 0 ,
82
83
flexShrink : 1 ,
84
+ flexBasis : 'auto' ,
83
85
} )
84
86
} )
85
87
86
88
it ( 'transforms flex auto keyword' , ( ) => {
87
89
expect ( transformCss ( [ [ 'flex' , 'auto' ] ] ) ) . toEqual ( {
88
90
flexGrow : 1 ,
89
91
flexShrink : 1 ,
92
+ flexBasis : 'auto' ,
90
93
} )
91
94
} )
92
95
93
96
it ( 'transforms flex none keyword' , ( ) => {
94
97
expect ( transformCss ( [ [ 'flex' , 'none' ] ] ) ) . toEqual ( {
95
98
flexGrow : 0 ,
96
99
flexShrink : 0 ,
100
+ flexBasis : 'auto' ,
97
101
} )
98
102
} )
99
103
You can’t perform that action at this time.
0 commit comments