Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 13, 2022
1 parent 4035d49 commit 0b68365
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 40 deletions.
38 changes: 0 additions & 38 deletions test/__snapshots__/preset-attributify.test.ts.snap
@@ -1,43 +1,5 @@
// Vitest Snapshot v1

exports[`attributify > autocomplete extractor 5`] = `
"
<button
uno-layer-base=\\"c-white/10 hover:c-black/20\\"
sm=\\"[color:red]\\"
md=\\"[--var:var(--another)]\\"
lg=\\"bg-blue-600\\"
class=\\"absolute fixed\\"
important=\\"text-red bg-red\\"
bg=\\"blue-4001 hover:blue-500 dark:!blue-500 dark:hover:blue-600\\"
text=\\"sm white\\"
!leading-4
flex=\\"!~ col\\"
p=\\"t-2\\"
pt=\\"2\\"
border=\\"rounded-xl x-1 x-style-dashed\\"
:font=\\"foo > bar ? 'mono' : 'sans'\\"
v-bind:p=\\"y-2 x-4\\"
border=\\"2 rounded blue-200\\"
un-children=\\"m-auto\\"
pt2 rounded-sm
inline-block
transform
translate-x-100%
translate-y-[10%]
rotate-30
after=\\"content-[unocss]\\"
rotate-60=\\"\\" ma=\\"\\"
m='\`
1 2
3
\`'
>
Button
</button>
"
`;

exports[`attributify > compatible with full controlled rules 1`] = `
"/* layer: default */
Expand Down
2 changes: 2 additions & 0 deletions test/__snapshots__/preset-mini.test.ts.snap
Expand Up @@ -412,7 +412,9 @@ div:hover .group-\\\\[div\\\\:hover\\\\]-\\\\[combinator\\\\:test-4\\\\]{combina
.text-\\\\$variable{color:var(--variable);}
.text-black\\\\/10{color:rgba(0,0,0,0.1);}
.text-red-200\\\\/10{color:rgba(254,202,202,0.1);}
.text-red-300\\\\:20,
.text-red-300\\\\/20{color:rgba(252,165,165,0.2);}
.text-red\\\\:20{color:rgba(248,113,113,0.2);}
.text-red2{--un-text-opacity:1;color:rgba(254,202,202,var(--un-text-opacity));}
.text-rose{--un-text-opacity:1;color:rgba(251,113,133,var(--un-text-opacity));}
.placeholder-color-opacity-60::placeholder{--un-text-opacity:0.6;}
Expand Down
2 changes: 2 additions & 0 deletions test/assets/preset-mini-targets.ts
Expand Up @@ -175,6 +175,8 @@ export const presetMiniTargets: string[] = [
'text-red-100',
'text-red-200/10',
'text-red-300/20',
'text-red-300:20',
'text-red:20',
'text-red100',
'text-red2',
'text-opacity-[13.3333333%]',
Expand Down
2 changes: 0 additions & 2 deletions test/preset-attributify.test.ts
Expand Up @@ -170,8 +170,6 @@ describe('attributify', () => {

expect(fixture1.slice(reversed.start, reversed.end))
.toMatchInlineSnapshot('"blue-400"')
expect(fixture1.slice(0, reversed.start) + reversed.replacement + fixture1.slice(reversed.end))
.toMatchSnapshot()
})

test('compatible with full controlled rules', async () => {
Expand Down

0 comments on commit 0b68365

Please sign in to comment.