@@ -48,6 +48,31 @@ describe('pxtorem - width 700', () => {
48
48
const fontSize = await getFontsize ( '#c_1' )
49
49
expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
50
50
} )
51
+
52
+ test ( 'should d_1 fontsize be rem' , async ( { rem } ) => {
53
+ const fontSize = await getFontsize ( '#d_1' )
54
+ expect ( fontSize ) . toBe ( rem )
55
+ } )
56
+
57
+ test ( 'should d_2 fontsize be half rem' , async ( { rem } ) => {
58
+ const fontSize = await getFontsize ( '#d_2' )
59
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
60
+ } )
61
+
62
+ test ( 'should d_3 fontsize be double rem' , async ( { rem } ) => {
63
+ const fontSize = await getFontsize ( '#d_3' )
64
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
65
+ } )
66
+
67
+ test ( 'should d_4 fontsize be double rem' , async ( { rem } ) => {
68
+ const fontSize = await getFontsize ( '#d_4' )
69
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
70
+ } )
71
+
72
+ test ( 'should e_1 fontsize be rem' , async ( { rem } ) => {
73
+ const fontSize = await getFontsize ( '#e_1' )
74
+ expect ( fontSize ) . toBe ( rem )
75
+ } )
51
76
} )
52
77
53
78
describe ( 'pxtorem - width 1120' , ( ) => {
@@ -91,6 +116,31 @@ describe('pxtorem - width 1120', () => {
91
116
const fontSize = await getFontsize ( '#c_1' )
92
117
expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
93
118
} )
119
+
120
+ test ( 'should d_1 fontsize be rem' , async ( { rem } ) => {
121
+ const fontSize = await getFontsize ( '#d_1' )
122
+ expect ( fontSize ) . toBe ( rem )
123
+ } )
124
+
125
+ test ( 'should d_2 fontsize be half rem' , async ( { rem } ) => {
126
+ const fontSize = await getFontsize ( '#d_2' )
127
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
128
+ } )
129
+
130
+ test ( 'should d_3 fontsize be double rem' , async ( { rem } ) => {
131
+ const fontSize = await getFontsize ( '#d_3' )
132
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
133
+ } )
134
+
135
+ test ( 'should d_4 fontsize be double rem' , async ( { rem } ) => {
136
+ const fontSize = await getFontsize ( '#d_4' )
137
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
138
+ } )
139
+
140
+ test ( 'should e_1 fontsize be rem' , async ( { rem } ) => {
141
+ const fontSize = await getFontsize ( '#e_1' )
142
+ expect ( fontSize ) . toBe ( rem )
143
+ } )
94
144
} )
95
145
96
146
describe ( 'pxtorem - width 1960' , ( ) => {
@@ -134,4 +184,29 @@ describe('pxtorem - width 1960', () => {
134
184
const fontSize = await getFontsize ( '#c_1' )
135
185
expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
136
186
} )
187
+
188
+ test ( 'should d_1 fontsize be rem' , async ( { rem } ) => {
189
+ const fontSize = await getFontsize ( '#d_1' )
190
+ expect ( fontSize ) . toBe ( rem )
191
+ } )
192
+
193
+ test ( 'should d_2 fontsize be half rem' , async ( { rem } ) => {
194
+ const fontSize = await getFontsize ( '#d_2' )
195
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) / 2 } px` )
196
+ } )
197
+
198
+ test ( 'should d_3 fontsize be double rem' , async ( { rem } ) => {
199
+ const fontSize = await getFontsize ( '#d_3' )
200
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
201
+ } )
202
+
203
+ test ( 'should d_4 fontsize be double rem' , async ( { rem } ) => {
204
+ const fontSize = await getFontsize ( '#d_4' )
205
+ expect ( fontSize ) . toBe ( `${ Number . parseFloat ( rem ) * 2 } px` )
206
+ } )
207
+
208
+ test ( 'should e_1 fontsize be rem' , async ( { rem } ) => {
209
+ const fontSize = await getFontsize ( '#e_1' )
210
+ expect ( fontSize ) . toBe ( rem )
211
+ } )
137
212
} )
0 commit comments