File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ const processing = (input, options) => {
6
6
return postcss ( [ plugin ( options ) ] ) . process ( input ) . css ;
7
7
} ;
8
8
9
+ test ( 'it change circular reference witch cacl' , t => {
10
+ const expected = ':root { --original-var: 4px; --nested-var: calc(2 * var(--original-var)); } .class-name { @mixin mixinName calc(2 * 4px); }' ;
11
+ const value = ':root { --original-var: 4px; --nested-var: calc(2 * var(--original-var)); } .class-name { @mixin mixinName var(--nested-var); }' ;
12
+ t . is ( processing ( value ) , expected ) ;
13
+ } ) ;
14
+
9
15
test ( 'it change circular reference' , t => {
10
16
const expected = ':root{ --from: 1; --to: var(--from)} @for $i from 1 to 1' ;
11
17
const value = ':root{ --from: 1; --to: var(--from)} @for $i from var(--from) to var(--to)' ;
You can’t perform that action at this time.
0 commit comments