Skip to content

Commit

Permalink
test: add test case for directive
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 9, 2022
1 parent b5feafd commit 9df9801
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/transformer-directives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,21 @@ describe('transformer-directives', () => {
"
`)
})

test('@apply with colon', async () => {
const result = await transform(
'.btn { @apply: rounded text-lg font-mono }',
)
expect(result)
.toMatchInlineSnapshot(`
".btn {
border-radius: 0.25rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
\\"Liberation Mono\\", \\"Courier New\\", monospace;
font-size: 1.125rem;
line-height: 1.75rem;
}
"
`)
})
})

0 comments on commit 9df9801

Please sign in to comment.