mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 09:20:36 +01:00
test(useOverlay): add composable tests (#4482)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
22
test/mocks/MockModal.vue
Normal file
22
test/mocks/MockModal.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div class="mock-modal">
|
||||
<h2>{{ title }}</h2>
|
||||
<p>{{ description }}</p>
|
||||
<button
|
||||
@click="$emit('close', 'test-result')"
|
||||
>
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { title = 'Test Modal', description = 'Test Description' } = defineProps<{
|
||||
title?: string
|
||||
description?: string
|
||||
}>()
|
||||
|
||||
defineEmits<{
|
||||
close: [value: string]
|
||||
}>()
|
||||
</script>
|
||||
Reference in New Issue
Block a user