@@ -30,14 +30,14 @@ test("should apply default queries without a condition function", () => {
3030 {
3131 [ SELECTOR ] : ".Container" ,
3232 [ VALUES ] : {
33- fontSize : `2rh` ,
34- lineHeight : `1rh`
33+ "font-size" : `2rh` ,
34+ "line-height" : `1rh`
3535 }
3636 } ,
3737 {
3838 [ SELECTOR ] : ".Container__element" ,
3939 [ VALUES ] : {
40- lineHeight : `3rh`
40+ "line-height" : `3rh`
4141 }
4242 }
4343 ]
@@ -48,14 +48,14 @@ test("should apply default queries without a condition function", () => {
4848 {
4949 [ SELECTOR ] : ".Container" ,
5050 [ VALUES ] : {
51- fontSize : `4rh` ,
52- lineHeight : `2rh`
51+ "font-size" : `4rh` ,
52+ "line-height" : `2rh`
5353 }
5454 } ,
5555 {
5656 [ SELECTOR ] : ".Container__element" ,
5757 [ STYLES ] : {
58- lineHeight : "10px"
58+ "line-height" : "10px"
5959 }
6060 }
6161 ]
@@ -70,13 +70,13 @@ test("should apply default queries without a condition function", () => {
7070 expect ( getChangedStyles ( element , size ) ) . toEqual ( {
7171 ".Container" : {
7272 addStyle : {
73- fontSize : "4.000px" ,
74- lineHeight : "2.000px"
73+ "font-size" : "4.000px" ,
74+ "line-height" : "2.000px"
7575 }
7676 } ,
7777 ".Container__element" : {
7878 addStyle : {
79- lineHeight : "10px"
79+ "line-height" : "10px"
8080 }
8181 }
8282 } ) ;
@@ -94,11 +94,11 @@ test("should return change sets on first run", () => {
9494 {
9595 [ SELECTOR ] : ".Container__element" ,
9696 [ STYLES ] : {
97- fontSize : "12px" ,
97+ "font-size" : "12px" ,
9898 background : "#ccc"
9999 } ,
100100 [ VALUES ] : {
101- lineHeight : `1rh`
101+ "line-height" : `1rh`
102102 }
103103 }
104104 ]
@@ -115,7 +115,7 @@ test("should return change sets on first run", () => {
115115 {
116116 [ SELECTOR ] : ".Container__element" ,
117117 [ STYLES ] : {
118- fontSize : "14px"
118+ "font-size" : "14px"
119119 }
120120 }
121121 ]
@@ -136,8 +136,8 @@ test("should return change sets on first run", () => {
136136 } ,
137137 ".Container__element" : {
138138 addStyle : {
139- fontSize : "14px" ,
140- lineHeight : "1.00px" ,
139+ "font-size" : "14px" ,
140+ "line-height" : "1.00px" ,
141141 background : "#ccc"
142142 }
143143 }
@@ -188,7 +188,7 @@ test("should generate remove change set", () => {
188188 [ SELECTOR ] : ".Container" ,
189189 [ STYLES ] : { } ,
190190 [ VALUES ] : {
191- lineHeight : `10rh`
191+ "line-height" : `10rh`
192192 }
193193 }
194194 ]
@@ -199,11 +199,11 @@ test("should generate remove change set", () => {
199199 {
200200 [ SELECTOR ] : ".Container" ,
201201 [ STYLES ] : {
202- fontSize : "14px" ,
202+ "font-size" : "14px" ,
203203 background : "#bbb"
204204 } ,
205205 [ VALUES ] : {
206- lineHeight : `2rh`
206+ "line-height" : `2rh`
207207 }
208208 } ,
209209 {
@@ -213,7 +213,7 @@ test("should generate remove change set", () => {
213213 border : "none"
214214 } ,
215215 [ VALUES ] : {
216- fontSize : `1rh`
216+ "font-size" : `1rh`
217217 }
218218 }
219219 ]
@@ -230,15 +230,15 @@ test("should generate remove change set", () => {
230230 ".Container" : {
231231 addStyle : {
232232 background : "#aaa" ,
233- lineHeight : "10.00px"
233+ "line-height" : "10.00px"
234234 } ,
235- removeProps : [ "fontSize " ]
235+ removeProps : [ "font-size " ]
236236 } ,
237237 ".Container__element" : {
238238 addStyle : {
239239 background : "#bbb"
240240 } ,
241- removeProps : [ "border" , "fontSize " ]
241+ removeProps : [ "border" , "font-size " ]
242242 }
243243 } ) ;
244244 expect ( registryData . queryState ) . toEqual ( [ true , true , false ] ) ;
@@ -256,15 +256,15 @@ test("should generate empty change set if conditions allow", () => {
256256 {
257257 [ SELECTOR ] : ".Container" ,
258258 [ STYLES ] : {
259- fontSize : "14px" ,
259+ "font-size" : "14px" ,
260260 background : "#bbb" ,
261- lineHeight : "16px"
261+ "line-height" : "16px"
262262 }
263263 } ,
264264 {
265265 [ SELECTOR ] : ".Container__element" ,
266266 [ STYLES ] : {
267- fontSize : "8px" ,
267+ "font-size" : "8px" ,
268268 background : "#eee"
269269 }
270270 }
@@ -276,15 +276,15 @@ test("should generate empty change set if conditions allow", () => {
276276 {
277277 [ SELECTOR ] : ".Container" ,
278278 [ STYLES ] : {
279- fontSize : "16px" ,
279+ "font-size" : "16px" ,
280280 background : "#ccc" ,
281- lineHeight : "18px"
281+ "line-height" : "18px"
282282 }
283283 } ,
284284 {
285285 [ SELECTOR ] : ".Container__element" ,
286286 [ STYLES ] : {
287- fontSize : "9px" ,
287+ "font-size" : "9px" ,
288288 background : "#fff"
289289 }
290290 }
@@ -317,13 +317,13 @@ test("should always recalculate values", () => {
317317 {
318318 [ SELECTOR ] : ".Container" ,
319319 [ VALUES ] : {
320- fontSize : `2rh`
320+ "font-size" : `2rh`
321321 }
322322 } ,
323323 {
324324 [ SELECTOR ] : ".Container__element" ,
325325 [ VALUES ] : {
326- fontSize : `4rh`
326+ "font-size" : `4rh`
327327 }
328328 }
329329 ]
@@ -334,7 +334,7 @@ test("should always recalculate values", () => {
334334 {
335335 [ SELECTOR ] : ".Container" ,
336336 [ VALUES ] : {
337- fontSize : `3rh`
337+ "font-size" : `3rh`
338338 }
339339 }
340340 ]
@@ -345,13 +345,13 @@ test("should always recalculate values", () => {
345345 {
346346 [ SELECTOR ] : ".Container" ,
347347 [ VALUES ] : {
348- lineHeight : `4rh`
348+ "line-height" : `4rh`
349349 }
350350 } ,
351351 {
352352 [ SELECTOR ] : ".Container__element" ,
353353 [ VALUES ] : {
354- lineHeight : `3rh`
354+ "line-height" : `3rh`
355355 }
356356 }
357357 ]
@@ -366,14 +366,14 @@ test("should always recalculate values", () => {
366366 expect ( getChangedStyles ( element , size ) ) . toEqual ( {
367367 ".Container" : {
368368 addStyle : {
369- lineHeight : "8.00px" ,
370- fontSize : "6.00px"
369+ "line-height" : "8.00px" ,
370+ "font-size" : "6.00px"
371371 }
372372 } ,
373373 ".Container__element" : {
374374 addStyle : {
375- lineHeight : "6.00px" ,
376- fontSize : "8.00px"
375+ "line-height" : "6.00px" ,
376+ "font-size" : "8.00px"
377377 }
378378 }
379379 } ) ;
@@ -392,8 +392,8 @@ test("should be able to limit the precision of generated css values", () => {
392392 {
393393 [ SELECTOR ] : ".Container" ,
394394 [ VALUES ] : {
395- fontSize : `22.5rh` ,
396- lineHeight : `22.4rh`
395+ "font-size" : `22.5rh` ,
396+ "line-height" : `22.4rh`
397397 }
398398 }
399399 ]
@@ -409,8 +409,8 @@ test("should be able to limit the precision of generated css values", () => {
409409 expect ( getChangedStyles ( element , size ) ) . toEqual ( {
410410 ".Container" : {
411411 addStyle : {
412- fontSize : "27.68px" ,
413- lineHeight : "27.55px"
412+ "font-size" : "27.68px" ,
413+ "line-height" : "27.55px"
414414 }
415415 }
416416 } ) ;
@@ -430,8 +430,8 @@ test("should handle multiple prop removal over multiple queries", () => {
430430 [ SELECTOR ] : ".Container" ,
431431 [ STYLES ] : {
432432 border : "none" ,
433- fontSize : "12px" ,
434- lineHeight : "15px"
433+ "font-size" : "12px" ,
434+ "line-height" : "15px"
435435 }
436436 }
437437 ]
@@ -442,7 +442,7 @@ test("should handle multiple prop removal over multiple queries", () => {
442442 {
443443 [ SELECTOR ] : ".Container" ,
444444 [ STYLES ] : {
445- fontSize : "13px"
445+ "font-size" : "13px"
446446 }
447447 }
448448 ]
@@ -456,7 +456,7 @@ test("should handle multiple prop removal over multiple queries", () => {
456456 border : "1px solid"
457457 } ,
458458 [ VALUES ] : {
459- lineHeight : `2rh`
459+ "line-height" : `2rh`
460460 }
461461 }
462462 ]
@@ -473,8 +473,8 @@ test("should handle multiple prop removal over multiple queries", () => {
473473 ".Container" : {
474474 addStyle : {
475475 border : "none" ,
476- fontSize : "13px" ,
477- lineHeight : "15px"
476+ "font-size" : "13px" ,
477+ "line-height" : "15px"
478478 }
479479 }
480480 } ) ;
0 commit comments