Skip to content

Commit

Permalink
add test for string
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Mar 21, 2024
1 parent d6aae4e commit 19203c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions __tests__/transformer/shadow-css.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ describe('Transformer: shadowCss', () => {
]);
});

it('should forward `shadow` string', () => {
// @ts-expect-error: missing properties
const stringItem = {
value: "0px 0px 0px 2px #00000022",
$type: 'shadow',
} as StyleDictionary.TransformedToken;

expect(shadowCss.transformer(stringItem, {})).toStrictEqual(
"0px 0px 0px 2px #00000022"
);
});

it('should transform an array of shadow values', () => {
const shadows = [{
value: '',
Expand Down

0 comments on commit 19203c8

Please sign in to comment.