Skip to content

Commit ec8eea3

Browse files
committed
Refactor CSS rules in tests for consistency and clarity
1 parent a98345f commit ec8eea3

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

packages/cli/tests/render/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ it('render css text into <head>', async () => {
2424
<head>
2525
<link rel="styleSheet">
2626
<style></style>
27-
<style id="master">@layer base,theme,preset,components,general;@layer general{.font\\:32{font-size:2rem}.ml\\:0\\>\\:is\\(a\\,button\\)\\:first>:is(a,button):first-child{margin-left:0rem}.text\\:center{text-align:center}}</style></head>
27+
<style id="master">@layer base,theme,preset,components,general;@layer general{.font\\:32{font-size:2rem}.text\\:center{text-align:center}.ml\\:0\\>\\:is\\(a\\,button\\)\\:first>:is(a,button):first-child{margin-left:0rem}}</style></head>
2828
<body>
2929
<h1 class="text:center ml:0>:is(a,button):first font:32">Hello World</h1>
3030
</body>

packages/extractor/tests/contributions/aristide.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,23 @@ test('AristideBH', async () => {
8080
expect(extractor?.css.generalLayer.rules.map(({ name }) => name)).toEqual([
8181
'flex',
8282
'sticky',
83-
'bg:var(--primary)',
8483
'bg:var(--code-background-color)',
84+
'bg:var(--primary)',
8585
'grid-row:1/2',
8686
'p:20',
87-
'{p:1.5em;flex-basis:full;fg:white;text-decoration:none}>a',
8887
'ai:center',
8988
'aspect:16/9',
89+
'f:12',
9090
'fg:white',
91-
'flex:row',
9291
'flex:col',
93-
'f:12',
92+
'flex:row',
9493
'jc:center',
9594
'obj:cover',
9695
't:center',
9796
'top:0',
9897
'w:100%',
9998
'z:10',
99+
'{p:1.5em;flex-basis:full;fg:white;text-decoration:none}>a',
100100
'text-decoration:none:hover',
101101
])
102102
})

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)