Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 2, 2023
1 parent f9de3d8 commit 2afa846
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion test/pos.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,25 @@ describe('matched-positions', async () => {
})

expect(await match(uno, '.btn-center{@apply text-center my-0 font-medium;\n}'))
.toMatchInlineSnapshot('[]')
.toMatchInlineSnapshot(`
[
[
19,
30,
"text-center",
],
[
31,
35,
"my-0",
],
[
36,
47,
"font-medium",
],
]
`)
})

test('class-based', async () => {
Expand Down Expand Up @@ -99,6 +117,21 @@ describe('matched-positions', async () => {
expect(await match(uno, '<div class="hover:(h-4 w-4 bg-green-300) disabled:opacity-50"></div>'))
.toMatchInlineSnapshot(`
[
[
19,
22,
"hover:h-4",
],
[
23,
26,
"hover:w-4",
],
[
27,
39,
"hover:bg-green-300",
],
[
41,
60,
Expand Down Expand Up @@ -195,6 +228,16 @@ describe('matched-positions-pug', async () => {
30,
"p4",
],
[
45,
48,
"hover:h-4",
],
[
49,
52,
"hover:w-4",
],
]
`)
})
Expand Down

0 comments on commit 2afa846

Please sign in to comment.