Skip to content

Commit cd0dc00

Browse files
committed
feat: update test
1 parent 548f088 commit cd0dc00

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/rules/require-explicit-slots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = {
149149
)
150150

151151
/** @type {string | undefined} */
152-
let slotName = ''
152+
let slotName
153153
if (!nameNode) {
154154
// If no slot name is declared, default to 'default'
155155
slotName = 'default'

tests/lib/rules/require-explicit-slots.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ tester.run('require-explicit-slots', rule, {
171171
</div>
172172
</template>
173173
<script setup lang="ts">
174-
defineSlots<{}>()
174+
defineSlots<{
175+
default(props: { msg: string }): any
176+
}>()
175177
</script>`
176178
}
177179
],

0 commit comments

Comments
 (0)