Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Jun 29, 2022
1 parent 1c46e61 commit b95cb1d
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 4 deletions.
6 changes: 6 additions & 0 deletions tests/files/original-tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,12 @@
"value": "rgba(4, 74, 255, 1)",
"type": "color"
},
"empty": {
"category": "color",
"exportKey": "color",
"value": "rgba(0, 0, 0, 0)",
"type": "color"
},
"special characters": {
"😅": {
"category": "color",
Expand Down
23 changes: 21 additions & 2 deletions tests/files/standard-tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@
"description": "A red with a 50% opacity",
"type": "color",
"value": "#ff5f0480",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:73ee61b85a05b803a735041e06d604cf5b5e396c,",
Expand All @@ -639,11 +640,13 @@
"multiple fills": {
"0": {
"type": "color",
"value": "#40ffbaff"
"value": "#40ffbaff",
"blendMode": "normal"
},
"1": {
"type": "color",
"value": "#0000001a"
"value": "#0000001a",
"blendMode": "normal"
},
"description": "",
"extensions": {
Expand All @@ -657,6 +660,7 @@
"description": "",
"type": "color",
"value": "#044affff",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:41c3b1bbb20c349db5198426c9f21eee91270703,",
Expand All @@ -668,6 +672,7 @@
"description": "Some other description",
"type": "color",
"value": "{color.colors.single blue}",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:a466a5c4f753617558885425bf0c42b7a53fcda4,",
Expand All @@ -676,11 +681,24 @@
}
}
},
"empty": {
"description": "",
"type": "color",
"value": "#00000000",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:5e1d174ea8c7f59af7d8eeb52856a48cfe285856,",
"exportKey": "color"
}
}
},
"special characters": {
"😅": {
"description": "Emoji",
"type": "color",
"value": "#40df50ff",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:0eca3633c52956ddb97940c7445007a90b937be1,",
Expand All @@ -692,6 +710,7 @@
"description": "",
"type": "color",
"value": "#3456afff",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"styleId": "S:79e9a7afce7078dc29994d2791959ebf9f45efa5,",
Expand Down
1 change: 1 addition & 0 deletions tests/integration/data/cssOutput.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default
--color-colors-multiple-fills-1: rgba(0, 0, 0, 0.1);
--color-colors-single-blue: #044aff;
--color-colors-ref-blue: #044aff; /* Some other description */
--color-colors-empty: rgba(0, 0, 0, 0);
--color-colors-special-characters: #40df50; /* Emoji */
--color-colors-special-characters-nderung: #3456af;
--grid-multiple-0-pattern: columns;
Expand Down
1 change: 1 addition & 0 deletions tests/integration/data/cssStandardOutput.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default
--color-colors-multiple-fills-1: rgba(0, 0, 0, 0.1);
--color-colors-single-blue: rgb(4, 74, 255);
--color-colors-ref-blue: rgb(4, 74, 255); /* Some other description */
--color-colors-empty: rgba(0, 0, 0, 0);
--color-colors-special-characters: rgb(64, 223, 80); /* Emoji */
--color-colors-special-characters-nderung: rgb(52, 86, 175);
--grid-multiple-0: [object Object];
Expand Down
6 changes: 6 additions & 0 deletions tests/integration/data/jsonOriginalFormat.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,12 @@ export default {
},
color: {
colors: {
empty: {
category: 'color',
exportKey: 'color',
type: 'color',
value: 'rgba(0, 0, 0, 0)'
},
'multiple fills': {
0: {
value: 'rgba(64, 255, 186, 1)',
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/data/original.variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@
--color-colors-multiple-fills-1: rgba(0, 0, 0, 0.1);
--color-colors-single-blue: #044aff;
--color-colors-ref-blue: #044aff; /* Some other description */
--color-colors-empty: rgba(0, 0, 0, 0);
--color-colors-special-characters: #40df50; /* Emoji */
--color-colors-special-characters-nderung: #3456af;
--color-invalid-empty: rgba(0, 0, 0, 0);
--grid-multiple-0-pattern: columns;
--grid-multiple-0-section-size: 1;
--grid-multiple-0-gutter-size: 20;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/data/standard.variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
--color-colors-multiple-fills-1: rgba(0, 0, 0, 0.1);
--color-colors-single-blue: rgb(4, 74, 255);
--color-colors-ref-blue: rgb(4, 74, 255); /* Some other description */
--color-colors-empty: rgba(0, 0, 0, 0);
--color-colors-special-characters: rgb(64, 223, 80); /* Emoji */
--color-colors-special-characters-nderung: rgb(52, 86, 175);
--color-invalid-empty: rgba(0, 0, 0, 0);
--grid-multiple-0: [object Object];
--grid-multiple-1: [object Object];
--grid-multiple-2: [object Object];
Expand Down

0 comments on commit b95cb1d

Please sign in to comment.