Skip to content

Commit

Permalink
test: comments (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Apr 3, 2019
1 parent 112178b commit c4db282
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,3 +828,24 @@ test(
'calc(\r\n100px\r\n+\r\n100px\r\n)',
'200px',
);

test(
'comments',
testValue,
'calc(/*test*/100px/*test*/ + /*test*/100px/*test*/)',
'200px',
);

test(
'comments (#1)',
testValue,
'calc(/*test*/100px/*test*/*/*test*/2/*test*/)',
'200px',
);

test(
'comments nested',
testValue,
'calc(/*test*/100px + calc(/*test*/100px/*test*/ + /*test*/100px/*test*/))',
'300px',
);

0 comments on commit c4db282

Please sign in to comment.