Skip to content

Commit 759ace5

Browse files
committed
chore: add test for parser
1 parent 64d0ba3 commit 759ace5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/parser/parser.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ describe('StyleProcessor', () => {
117117
);
118118
});
119119

120+
test('parses drop shadow value', () => {
121+
const dropShadow = 'drop-shadow(1x 2x 3x #dark.5)';
122+
const result = parser.process(dropShadow);
123+
expect(result.groups[0].values[0]).toEqual(
124+
'drop-shadow(var(--gap) calc(2 * var(--gap)) calc(3 * var(--gap)) rgb(var(--dark-color-rgb) / .5))',
125+
);
126+
});
127+
120128
test('parses background value with url and gradient', () => {
121129
const background =
122130
'url(image.png) no-repeat center/cover, linear-gradient(45deg, red, blue)';

0 commit comments

Comments
 (0)