Skip to content

Commit c4db282

Browse files
test: comments (#82)
1 parent 112178b commit c4db282

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/__tests__/index.js

+21
Original file line numberDiff line numberDiff line change
@@ -828,3 +828,24 @@ test(
828828
'calc(\r\n100px\r\n+\r\n100px\r\n)',
829829
'200px',
830830
);
831+
832+
test(
833+
'comments',
834+
testValue,
835+
'calc(/*test*/100px/*test*/ + /*test*/100px/*test*/)',
836+
'200px',
837+
);
838+
839+
test(
840+
'comments (#1)',
841+
testValue,
842+
'calc(/*test*/100px/*test*/*/*test*/2/*test*/)',
843+
'200px',
844+
);
845+
846+
test(
847+
'comments nested',
848+
testValue,
849+
'calc(/*test*/100px + calc(/*test*/100px/*test*/ + /*test*/100px/*test*/))',
850+
'300px',
851+
);

0 commit comments

Comments
 (0)