Skip to content

Commit 423bf0f

Browse files
committed
Add test
1 parent 8e80730 commit 423bf0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/plugins.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,17 @@ let tests: PluginTest[] = [
328328
},
329329
{
330330
plugins: ['prettier-plugin-astro'],
331+
options: {
332+
tailwindAttributes: ['/(styles|classes)/'],
333+
},
331334
tests: {
332335
astro: [
333336
// ...html, // TODO:
337+
[
338+
'<div styles="sm:p-0 p-0" classes="sm:p-0 p-0" other="sm:p-0 p-0"></div>',
339+
'<div styles="p-0 sm:p-0" classes="p-0 sm:p-0" other="sm:p-0 p-0"></div>',
340+
],
341+
334342
[`{<div class="p-20 bg-red-100 w-full"></div>}`, `{(<div class="w-full bg-red-100 p-20" />)}`],
335343
[
336344
`<style>

0 commit comments

Comments
 (0)