Skip to content

Commit 6629dac

Browse files
committed
fix test
1 parent eee044e commit 6629dac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/lib/rules/no-setup-props-destructure.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ tester.run('no-setup-props-destructure', rule, {
171171
code: `
172172
<script setup>
173173
const props = defineProps({count:Number})
174-
const {count} = props
174+
watch(() => {
175+
const {count} = props
176+
})
177+
watch(() => {
178+
const count = props.count
179+
})
175180
</script>
176181
`,
177182
errors: [

0 commit comments

Comments
 (0)