import { describe, it, expect, vi } from 'vitest';
import DashboardPage from '@/app/(protected)/dashboard/page';
import { useTenant } from '@/contexts/tenant-context';
import { useTasks } from '@/hooks/useTasks';
import { useShifts } from '@/hooks/useShifts';

vi.mock('@/contexts/tenant-context', () => ({
  useTenant: vi.fn(),
}));

vi.mock('@/hooks/useTasks', () => ({
  useTasks: vi.fn(),
}));

vi.mock('@/hooks/useShifts', () => ({
  useShifts: vi.fn(),
}));

describe('DashboardPage', () => {
  it('exports a valid component', () => {
    expect(DashboardPage).toBeDefined();
    expect(typeof DashboardPage).toBe('function');
  });

  it('uses useTenant hook', () => {
    expect(useTenant).toBeDefined();
  });

  it('uses useTasks hook', () => {
    expect(useTasks).toBeDefined();
  });

  it('uses useShifts hook', () => {
    expect(useShifts).toBeDefined();
  });
});
