23 lines
559 B
TypeScript
23 lines
559 B
TypeScript
|
|
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();
|
||
|
|
});
|
||
|
|
});
|