@@ -153,7 +153,6 @@ test('should replace a constant and an import with same name within the file and
153
153
) ;
154
154
} ) ;
155
155
156
-
157
156
test ( 'should replace an import from several files' , async ( t ) => {
158
157
await run (
159
158
t ,
@@ -283,10 +282,10 @@ test('should allow custom-property-style names', async (t) => {
283
282
test ( 'should allow all colour types' , async ( t ) => {
284
283
await run (
285
284
t ,
286
- '@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n' +
287
- '.foo { color: named; background-color: hex3char; border-top-color: hex6char; border-bottom-color: rgba; outline-color: hsla; }' ,
288
- '@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n' +
289
- '.foo { color: red; background-color: #0f0; border-top-color: #00ff00; border-bottom-color: rgba(34, 12, 64, 0.3); outline-color: hsla(220, 13.0%, 18.0%, 1); }' ,
285
+ '@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n'
286
+ + '.foo { color: named; background-color: hex3char; border-top-color: hex6char; border-bottom-color: rgba; outline-color: hsla; }' ,
287
+ '@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n'
288
+ + '.foo { color: red; background-color: #0f0; border-top-color: #00ff00; border-bottom-color: rgba(34, 12, 64, 0.3); outline-color: hsla(220, 13.0%, 18.0%, 1); }' ,
290
289
) ;
291
290
} ) ;
292
291
@@ -311,10 +310,10 @@ test('should import multiple from a single file on multiple lines', async (t) =>
311
310
test ( 'should allow definitions with commas in them' , async ( t ) => {
312
311
await run (
313
312
t ,
314
- '@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n' +
315
- '.foo { box-shadow: coolShadow; }' ,
316
- '@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n' +
317
- '.foo { box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14); }' ,
313
+ '@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n'
314
+ + '.foo { box-shadow: coolShadow; }' ,
315
+ '@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n'
316
+ + '.foo { box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14); }' ,
318
317
) ;
319
318
} ) ;
320
319
0 commit comments