Skip to content

Commit

Permalink
test: newline (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Apr 3, 2019
1 parent 016a444 commit 5e55420
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,3 +800,31 @@ test(
'calc(200px / -1)',
'-200px',
);

test(
'whitespace',
testValue,
'calc( 100px + 100px )',
'200px',
);

test(
'whitespace (#1)',
testValue,
'calc(\t100px\t+\t100px\t)',
'200px',
);

test(
'whitespace (#2)',
testValue,
'calc(\n100px\n+\n100px\n)',
'200px',
);

test(
'whitespace (#4)',
testValue,
'calc(\r\n100px\r\n+\r\n100px\r\n)',
'200px',
);

0 comments on commit 5e55420

Please sign in to comment.