Skip to content

Commit edb5273

Browse files
committed
Add tests
1 parent 78f0167 commit edb5273

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/lib/rules/component-api-style.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@ tester.run('component-api-style', rule, {
123123
`,
124124
options: [['script-setup', 'script-setup-vapor']]
125125
},
126+
{
127+
filename: 'test.vue',
128+
code: `
129+
<script setup>
130+
import { ref } from 'vue'
131+
const msg = ref('Hello World!')
132+
</script>
133+
`,
134+
options: [['script-setup', 'script-setup-vapor']]
135+
},
126136
{
127137
filename: 'test.js',
128138
code: `

0 commit comments

Comments
 (0)