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) => {
66 return postcss ( [ plugin ( options ) ] ) . process ( input ) . css ;
77} ;
88
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+
915test ( 'it change circular reference' , t => {
1016 const expected = ':root{ --from: 1; --to: var(--from)} @for $i from 1 to 1' ;
1117 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