Skip to content

Commit edb2b9e

Browse files
Merge pull request #17 from bitovi/test-naming-fix
Test naming fix
2 parents 853d723 + f9a31b6 commit edb2b9e

9 files changed

+4827
-98
lines changed

manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"enableProposedApi": false,
88
"documentAccess": "dynamic-page",
99
"editorType": [
10-
"figma"
10+
"figma",
11+
"dev"
1112
],
1213
"ui": "dist/ui.html",
1314
"networkAccess": {

src/tests/__snapshots__/background-processors.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ $spacing-9: 0.48
105105
background: #ffffff
106106
opacity: 0.5
107107
108-
@mixin opacity-custom-group-opacity-custom
108+
@mixin opacity-custom-group_opacity-custom
109109
background: #00464a
110110
opacity: 0.5
111111
112-
@mixin opacity-custom-group-lorem-ipsum
112+
@mixin opacity-custom-group_lorem-ipsum
113113
display: flex
114114
flex-direction: column
115115
color: #ffffff
@@ -126,11 +126,11 @@ $spacing-9: 0.48
126126
background: $text-primary
127127
opacity: $size-48
128128
129-
@mixin opacity-variable-group-opacity-custom
129+
@mixin opacity-variable-group_opacity-custom
130130
background: $brand-primary
131131
opacity: $size-48
132132
133-
@mixin opacity-variable-group-lorem-ipsum
133+
@mixin opacity-variable-group_lorem-ipsum
134134
display: flex
135135
flex-direction: column
136136
color: $text-primary
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Demo Data (real world-ish exmaple) should process all demo data correctly: demo-data 1`] = `
4+
"// Generated SCSS Variables
5+
$base-size-xs: 0.125rem
6+
$base-colour-grey-400: #282828
7+
$base-font-size-xl: 1.25rem
8+
$global-font-uidefaultfont: inter
9+
$base-font-linespacing-lg: 1.5rem
10+
$base-font-weight-semibold: 31.25rem
11+
$base-colour-static-white: #ffffff
12+
$base-size-lg: 0.75rem
13+
$base-radius-sm: 0.25rem
14+
$global-size-border-width: 0.062rem
15+
$base-colour-grey-100: #d9d9d9
16+
$global-colour-textonlight: #282828
17+
$base-font-weight-regular: 25rem
18+
$base-colour-grey-300: #747474
19+
$base-colour-blue-300: #0177cc
20+
21+
// Generated SCSS Mixins
22+
@mixin input_resting
23+
display: flex
24+
flex-direction: column
25+
align-items: flex-start
26+
gap: $base-size-xs
27+
padding: 0rem
28+
width: 15.937rem
29+
30+
@mixin input_resting_label
31+
display: flex
32+
flex-direction: column
33+
color: $base-colour-grey-400
34+
font-family: $global-font-uidefaultfont
35+
font-size: $base-font-size-xl
36+
font-weight: 500
37+
font-style: normal
38+
line-height: $base-font-linespacing-lg
39+
width: 15.937rem
40+
41+
@mixin input_resting_input-box
42+
display: flex
43+
flex-direction: row
44+
align-items: center
45+
gap: $base-size-lg
46+
padding: 0.687rem $base-size-lg
47+
background: $base-colour-static-white
48+
width: 15.937rem
49+
border: $global-size-border-width solid $base-colour-grey-100
50+
box-shadow: inset 0 $global-size-border-width 0 0 $base-colour-grey-100, inset -$global-size-border-width 0 0 0 $base-colour-grey-100, inset 0 -$global-size-border-width 0 0 $base-colour-grey-100, inset $global-size-border-width 0 0 0 $base-colour-grey-100
51+
border-radius: $base-radius-sm
52+
53+
@mixin input_resting_input-box_input-text
54+
display: flex
55+
flex-direction: column
56+
color: $global-colour-textonlight
57+
font-family: $global-font-uidefaultfont
58+
font-size: 1rem
59+
font-weight: 400
60+
font-style: normal
61+
line-height: 20px
62+
width: 14.437rem
63+
64+
@mixin input_hover
65+
display: flex
66+
flex-direction: column
67+
align-items: flex-start
68+
gap: $base-size-xs
69+
padding: 0rem
70+
width: 15.937rem
71+
72+
@mixin input_hover_label
73+
display: flex
74+
flex-direction: column
75+
color: $base-colour-grey-400
76+
font-family: $global-font-uidefaultfont
77+
font-size: $base-font-size-xl
78+
font-weight: 500
79+
font-style: normal
80+
line-height: $base-font-linespacing-lg
81+
width: 15.937rem
82+
83+
@mixin input_hover_input-box
84+
display: flex
85+
flex-direction: row
86+
align-items: center
87+
gap: $base-size-lg
88+
padding: 0.687rem $base-size-lg
89+
background: $base-colour-static-white
90+
width: 15.937rem
91+
border: $global-size-border-width solid $base-colour-grey-300
92+
box-shadow: inset 0 $global-size-border-width 0 0 $base-colour-grey-300, inset -$global-size-border-width 0 0 0 $base-colour-grey-300, inset 0 -$global-size-border-width 0 0 $base-colour-grey-300, inset $global-size-border-width 0 0 0 $base-colour-grey-300
93+
border-radius: $base-radius-sm
94+
95+
@mixin input_hover_input-box_input-text
96+
display: flex
97+
flex-direction: column
98+
color: $global-colour-textonlight
99+
font-family: $global-font-uidefaultfont
100+
font-size: 1rem
101+
font-weight: 400
102+
font-style: normal
103+
line-height: 20px
104+
width: 14.437rem
105+
106+
@mixin input_active
107+
display: flex
108+
flex-direction: column
109+
align-items: flex-start
110+
gap: $base-size-xs
111+
padding: 0rem
112+
width: 15.937rem
113+
114+
@mixin input_active_label
115+
display: flex
116+
flex-direction: column
117+
color: $base-colour-blue-300
118+
font-family: $global-font-uidefaultfont
119+
font-size: $base-font-size-xl
120+
font-weight: 500
121+
font-style: normal
122+
line-height: $base-font-linespacing-lg
123+
width: 15.937rem
124+
125+
@mixin input_active_input-box
126+
display: flex
127+
flex-direction: row
128+
align-items: center
129+
gap: $base-size-lg
130+
padding: 0.687rem $base-size-lg
131+
background: $base-colour-static-white
132+
width: 15.937rem
133+
border: 0.125rem solid $base-colour-blue-300
134+
box-shadow: inset 0 0.125rem 0 0 $base-colour-blue-300, inset -0.125rem 0 0 0 $base-colour-blue-300, inset 0 -0.125rem 0 0 $base-colour-blue-300, inset 0.125rem 0 0 0 $base-colour-blue-300
135+
border-radius: $base-radius-sm
136+
137+
@mixin input_active_input-box_input-text
138+
display: flex
139+
flex-direction: column
140+
color: $global-colour-textonlight
141+
font-family: $global-font-uidefaultfont
142+
font-size: 1rem
143+
font-weight: 400
144+
font-style: normal
145+
line-height: 20px
146+
width: 14.437rem
147+
148+
"
149+
`;

0 commit comments

Comments
 (0)