import { mount } from '@vue/test-utils'
import { describe, it, expect } from 'vitest'
import Menu from '../Menu.vue'

// Provide a minimal menu item component for slot
const MenuItemStub = {
    template: '<div role="menuitem">Item</div>',
}

describe('Menu.vue', () => {
    it('renders menu button slot', () => {
        const wrapper = mount(Menu, {
            slots: {
                button: '<button data-test="trigger">Open</button>',
                default: MenuItemStub,
            },
        })
        expect(wrapper.find('[data-test="trigger"]').exists()).toBe(true)
    })
}) 