import { render } from '@testing-library/vue';
import { describe, expect, test, beforeEach, afterEach, vi } from 'vitest';
import UiSidebarMenu from '../UiSidebarMenu.vue';
import {
  createSidebarShell,
  mockMatchMediaDesktop,
} from './sidebar-test-helpers';

beforeEach(() => mockMatchMediaDesktop());
afterEach(() => vi.restoreAllMocks());

describe('UiSidebarMenu', () => {
  test('exposes menu list', () => {
    const { container } = render(
      createSidebarShell('<UiSidebarMenu />', { UiSidebarMenu }),
    );
    expect(container.querySelector('[data-sidebar="menu"]')).toBeTruthy();
  });
});
