Files
work-club-manager/frontend/src/components/__tests__/select-club.test.tsx

23 lines
559 B
TypeScript
Raw Normal View History

import { describe, it, expect, vi } from 'vitest';
import SelectClubPage from '@/app/select-club/page';
import { useTenant } from '@/contexts/tenant-context';
vi.mock('@/contexts/tenant-context', () => ({
useTenant: vi.fn(),
}));
vi.mock('next/navigation', () => ({
useRouter: vi.fn(),
}));
describe('SelectClubPage', () => {
it('exports a valid component', () => {
expect(SelectClubPage).toBeDefined();
expect(typeof SelectClubPage).toBe('function');
});
it('uses useTenant hook', () => {
expect(useTenant).toBeDefined();
});
});