File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,18 @@ test('it change circular reference', t => {
12
12
t . is ( processing ( value ) , expected ) ;
13
13
} ) ;
14
14
15
- test ( 'it should not throw error' , t => {
15
+ test ( 'it should not throw error if comment exists ' , t => {
16
16
const expected = ':root{ --from: 1; /* comment */ }' ;
17
17
const value = ':root{ --from: 1; /* comment */ }' ;
18
18
t . is ( processing ( value ) , expected ) ;
19
19
} ) ;
20
20
21
+ test ( 'it should not throw error if comment exists with rule' , t => {
22
+ const expected = ':root{ --from: 1; /* comment */ } @for $i from 1 to 2' ;
23
+ const value = ':root{ --from: 1; /* comment */ } @for $i from var(--from) to 2' ;
24
+ t . is ( processing ( value ) , expected ) ;
25
+ } ) ;
26
+
21
27
test ( 'it change first properties for @for' , t => {
22
28
const expected = ':root{ --from: 1; } @for $i from 1 to 2' ;
23
29
const value = ':root{ --from: 1; } @for $i from var(--from) to 2' ;
You can’t perform that action at this time.
0 commit comments