Skip to content

Commit 34fe682

Browse files
test: should not throw an exception when unknow function exist in calc (#74)
1 parent 5c9cca8 commit 34fe682

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/__tests__/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,3 +569,17 @@ test(
569569
'calc(var(--xxx, var(--yyy)) / 2)',
570570
'calc(var(--xxx, var(--yyy))/2)',
571571
);
572+
573+
test(
574+
'should not throw an exception when unknow function exist in calc',
575+
testValue,
576+
'calc(unknown(#fff) - other-unknown(200px))',
577+
'calc(unknown(#fff) - other-unknown(200px))',
578+
);
579+
580+
test(
581+
'should not throw an exception when unknow function exist in calc (#1)',
582+
testValue,
583+
'calc(unknown(#fff) * other-unknown(200px))',
584+
'calc(unknown(#fff)*other-unknown(200px))',
585+
);

0 commit comments

Comments
 (0)