@@ -30,14 +30,14 @@ test("should apply default queries without a condition function", () => {
30
30
{
31
31
[ SELECTOR ] : ".Container" ,
32
32
[ VALUES ] : {
33
- fontSize : `2rh` ,
34
- lineHeight : `1rh`
33
+ "font-size" : `2rh` ,
34
+ "line-height" : `1rh`
35
35
}
36
36
} ,
37
37
{
38
38
[ SELECTOR ] : ".Container__element" ,
39
39
[ VALUES ] : {
40
- lineHeight : `3rh`
40
+ "line-height" : `3rh`
41
41
}
42
42
}
43
43
]
@@ -48,14 +48,14 @@ test("should apply default queries without a condition function", () => {
48
48
{
49
49
[ SELECTOR ] : ".Container" ,
50
50
[ VALUES ] : {
51
- fontSize : `4rh` ,
52
- lineHeight : `2rh`
51
+ "font-size" : `4rh` ,
52
+ "line-height" : `2rh`
53
53
}
54
54
} ,
55
55
{
56
56
[ SELECTOR ] : ".Container__element" ,
57
57
[ STYLES ] : {
58
- lineHeight : "10px"
58
+ "line-height" : "10px"
59
59
}
60
60
}
61
61
]
@@ -70,13 +70,13 @@ test("should apply default queries without a condition function", () => {
70
70
expect ( getChangedStyles ( element , size ) ) . toEqual ( {
71
71
".Container" : {
72
72
addStyle : {
73
- fontSize : "4.000px" ,
74
- lineHeight : "2.000px"
73
+ "font-size" : "4.000px" ,
74
+ "line-height" : "2.000px"
75
75
}
76
76
} ,
77
77
".Container__element" : {
78
78
addStyle : {
79
- lineHeight : "10px"
79
+ "line-height" : "10px"
80
80
}
81
81
}
82
82
} ) ;
@@ -94,11 +94,11 @@ test("should return change sets on first run", () => {
94
94
{
95
95
[ SELECTOR ] : ".Container__element" ,
96
96
[ STYLES ] : {
97
- fontSize : "12px" ,
97
+ "font-size" : "12px" ,
98
98
background : "#ccc"
99
99
} ,
100
100
[ VALUES ] : {
101
- lineHeight : `1rh`
101
+ "line-height" : `1rh`
102
102
}
103
103
}
104
104
]
@@ -115,7 +115,7 @@ test("should return change sets on first run", () => {
115
115
{
116
116
[ SELECTOR ] : ".Container__element" ,
117
117
[ STYLES ] : {
118
- fontSize : "14px"
118
+ "font-size" : "14px"
119
119
}
120
120
}
121
121
]
@@ -136,8 +136,8 @@ test("should return change sets on first run", () => {
136
136
} ,
137
137
".Container__element" : {
138
138
addStyle : {
139
- fontSize : "14px" ,
140
- lineHeight : "1.00px" ,
139
+ "font-size" : "14px" ,
140
+ "line-height" : "1.00px" ,
141
141
background : "#ccc"
142
142
}
143
143
}
@@ -188,7 +188,7 @@ test("should generate remove change set", () => {
188
188
[ SELECTOR ] : ".Container" ,
189
189
[ STYLES ] : { } ,
190
190
[ VALUES ] : {
191
- lineHeight : `10rh`
191
+ "line-height" : `10rh`
192
192
}
193
193
}
194
194
]
@@ -199,11 +199,11 @@ test("should generate remove change set", () => {
199
199
{
200
200
[ SELECTOR ] : ".Container" ,
201
201
[ STYLES ] : {
202
- fontSize : "14px" ,
202
+ "font-size" : "14px" ,
203
203
background : "#bbb"
204
204
} ,
205
205
[ VALUES ] : {
206
- lineHeight : `2rh`
206
+ "line-height" : `2rh`
207
207
}
208
208
} ,
209
209
{
@@ -213,7 +213,7 @@ test("should generate remove change set", () => {
213
213
border : "none"
214
214
} ,
215
215
[ VALUES ] : {
216
- fontSize : `1rh`
216
+ "font-size" : `1rh`
217
217
}
218
218
}
219
219
]
@@ -230,15 +230,15 @@ test("should generate remove change set", () => {
230
230
".Container" : {
231
231
addStyle : {
232
232
background : "#aaa" ,
233
- lineHeight : "10.00px"
233
+ "line-height" : "10.00px"
234
234
} ,
235
- removeProps : [ "fontSize " ]
235
+ removeProps : [ "font-size " ]
236
236
} ,
237
237
".Container__element" : {
238
238
addStyle : {
239
239
background : "#bbb"
240
240
} ,
241
- removeProps : [ "border" , "fontSize " ]
241
+ removeProps : [ "border" , "font-size " ]
242
242
}
243
243
} ) ;
244
244
expect ( registryData . queryState ) . toEqual ( [ true , true , false ] ) ;
@@ -256,15 +256,15 @@ test("should generate empty change set if conditions allow", () => {
256
256
{
257
257
[ SELECTOR ] : ".Container" ,
258
258
[ STYLES ] : {
259
- fontSize : "14px" ,
259
+ "font-size" : "14px" ,
260
260
background : "#bbb" ,
261
- lineHeight : "16px"
261
+ "line-height" : "16px"
262
262
}
263
263
} ,
264
264
{
265
265
[ SELECTOR ] : ".Container__element" ,
266
266
[ STYLES ] : {
267
- fontSize : "8px" ,
267
+ "font-size" : "8px" ,
268
268
background : "#eee"
269
269
}
270
270
}
@@ -276,15 +276,15 @@ test("should generate empty change set if conditions allow", () => {
276
276
{
277
277
[ SELECTOR ] : ".Container" ,
278
278
[ STYLES ] : {
279
- fontSize : "16px" ,
279
+ "font-size" : "16px" ,
280
280
background : "#ccc" ,
281
- lineHeight : "18px"
281
+ "line-height" : "18px"
282
282
}
283
283
} ,
284
284
{
285
285
[ SELECTOR ] : ".Container__element" ,
286
286
[ STYLES ] : {
287
- fontSize : "9px" ,
287
+ "font-size" : "9px" ,
288
288
background : "#fff"
289
289
}
290
290
}
@@ -317,13 +317,13 @@ test("should always recalculate values", () => {
317
317
{
318
318
[ SELECTOR ] : ".Container" ,
319
319
[ VALUES ] : {
320
- fontSize : `2rh`
320
+ "font-size" : `2rh`
321
321
}
322
322
} ,
323
323
{
324
324
[ SELECTOR ] : ".Container__element" ,
325
325
[ VALUES ] : {
326
- fontSize : `4rh`
326
+ "font-size" : `4rh`
327
327
}
328
328
}
329
329
]
@@ -334,7 +334,7 @@ test("should always recalculate values", () => {
334
334
{
335
335
[ SELECTOR ] : ".Container" ,
336
336
[ VALUES ] : {
337
- fontSize : `3rh`
337
+ "font-size" : `3rh`
338
338
}
339
339
}
340
340
]
@@ -345,13 +345,13 @@ test("should always recalculate values", () => {
345
345
{
346
346
[ SELECTOR ] : ".Container" ,
347
347
[ VALUES ] : {
348
- lineHeight : `4rh`
348
+ "line-height" : `4rh`
349
349
}
350
350
} ,
351
351
{
352
352
[ SELECTOR ] : ".Container__element" ,
353
353
[ VALUES ] : {
354
- lineHeight : `3rh`
354
+ "line-height" : `3rh`
355
355
}
356
356
}
357
357
]
@@ -366,14 +366,14 @@ test("should always recalculate values", () => {
366
366
expect ( getChangedStyles ( element , size ) ) . toEqual ( {
367
367
".Container" : {
368
368
addStyle : {
369
- lineHeight : "8.00px" ,
370
- fontSize : "6.00px"
369
+ "line-height" : "8.00px" ,
370
+ "font-size" : "6.00px"
371
371
}
372
372
} ,
373
373
".Container__element" : {
374
374
addStyle : {
375
- lineHeight : "6.00px" ,
376
- fontSize : "8.00px"
375
+ "line-height" : "6.00px" ,
376
+ "font-size" : "8.00px"
377
377
}
378
378
}
379
379
} ) ;
@@ -392,8 +392,8 @@ test("should be able to limit the precision of generated css values", () => {
392
392
{
393
393
[ SELECTOR ] : ".Container" ,
394
394
[ VALUES ] : {
395
- fontSize : `22.5rh` ,
396
- lineHeight : `22.4rh`
395
+ "font-size" : `22.5rh` ,
396
+ "line-height" : `22.4rh`
397
397
}
398
398
}
399
399
]
@@ -409,8 +409,8 @@ test("should be able to limit the precision of generated css values", () => {
409
409
expect ( getChangedStyles ( element , size ) ) . toEqual ( {
410
410
".Container" : {
411
411
addStyle : {
412
- fontSize : "27.68px" ,
413
- lineHeight : "27.55px"
412
+ "font-size" : "27.68px" ,
413
+ "line-height" : "27.55px"
414
414
}
415
415
}
416
416
} ) ;
@@ -430,8 +430,8 @@ test("should handle multiple prop removal over multiple queries", () => {
430
430
[ SELECTOR ] : ".Container" ,
431
431
[ STYLES ] : {
432
432
border : "none" ,
433
- fontSize : "12px" ,
434
- lineHeight : "15px"
433
+ "font-size" : "12px" ,
434
+ "line-height" : "15px"
435
435
}
436
436
}
437
437
]
@@ -442,7 +442,7 @@ test("should handle multiple prop removal over multiple queries", () => {
442
442
{
443
443
[ SELECTOR ] : ".Container" ,
444
444
[ STYLES ] : {
445
- fontSize : "13px"
445
+ "font-size" : "13px"
446
446
}
447
447
}
448
448
]
@@ -456,7 +456,7 @@ test("should handle multiple prop removal over multiple queries", () => {
456
456
border : "1px solid"
457
457
} ,
458
458
[ VALUES ] : {
459
- lineHeight : `2rh`
459
+ "line-height" : `2rh`
460
460
}
461
461
}
462
462
]
@@ -473,8 +473,8 @@ test("should handle multiple prop removal over multiple queries", () => {
473
473
".Container" : {
474
474
addStyle : {
475
475
border : "none" ,
476
- fontSize : "13px" ,
477
- lineHeight : "15px"
476
+ "font-size" : "13px" ,
477
+ "line-height" : "15px"
478
478
}
479
479
}
480
480
} ) ;
0 commit comments