Skip to content

Commit adfa7a4

Browse files
committed
fix numeric values
1 parent 9c9589b commit adfa7a4

15 files changed

+943
-1054
lines changed
+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="@mertasan/tailwindcss-variables" type="JavaScriptTestRunnerJest">
3-
<node-interpreter value="project"/>
4-
<node-options value=""/>
5-
<jest-package value="$PROJECT_DIR$/node_modules/jest"/>
6-
<working-dir value="$PROJECT_DIR$/src"/>
7-
<jest-options value="--coverage"/>
8-
<envs/>
9-
<scope-kind value="ALL"/>
10-
<method v="2"/>
3+
<node-interpreter value="project" />
4+
<node-options value="" />
5+
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
6+
<working-dir value="$PROJECT_DIR$/src" />
7+
<jest-options value="--coverage" />
8+
<envs />
9+
<scope-kind value="ALL" />
10+
<method v="2" />
1111
</configuration>
12-
</component>
12+
</component>

__tests__/basic-usage.test.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ test('basic usage', async () => {
1313
black: 'rgb(0, 0, 0)',
1414
white: '#ffffff',
1515
},
16+
1617
sizes: {
1718
small: '10px',
1819
medium: '2rem',
1920
large: '100%',
2021
},
2122
},
23+
2224
'.container': {
2325
colors: {
2426
primary: 'red',
@@ -27,23 +29,19 @@ test('basic usage', async () => {
2729
},
2830
},
2931
},
32+
3033
plugins: [tailwindcssVariables],
31-
}),
34+
})
3235
).toMatchInlineSnapshot(`
3336
"
3437
3538
3639
+ :root {
37-
+ --colors-black: rgb(0, 0, 0);
38-
+ --colors-white: #ffffff;
39-
+ --sizes-small: 10px;
40-
+ --sizes-medium: 2rem;
41-
+ --sizes-large: 100%
42-
+ }
43-
+
44-
+ .container {
45-
+ --colors-primary: red;
46-
+ --colors-secondary: var(--colors-primary)
40+
+ --colors-black: rgb(0, 0, 0);
41+
+ --colors-white: #ffffff;
42+
+ --sizes-small: 10px;
43+
+ --sizes-medium: 2rem;
44+
+ --sizes-large: 100%
4745
+ }
4846
4947
"

0 commit comments

Comments
 (0)