website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -1,8 +1,8 @@
import { describe, it, expect } from 'vitest';
import { MembershipFeeViewModel } from './MembershipFeeViewModel';
import type { MembershipFeeDto } from '../types/generated';
import type { MembershipFeeDTO } from '@/lib/types/generated';
const createMembershipFeeDto = (overrides: Partial<MembershipFeeDto> = {}): MembershipFeeDto => ({
const createMembershipFeeDto = (overrides: Partial<MembershipFeeDTO> = {}): MembershipFeeDTO => ({
id: 'fee-1',
leagueId: 'league-1',
seasonId: 'season-1',
@@ -38,7 +38,7 @@ describe('MembershipFeeViewModel', () => {
const seasonVm = new MembershipFeeViewModel(createMembershipFeeDto({ type: 'season' }));
const monthlyVm = new MembershipFeeViewModel(createMembershipFeeDto({ type: 'monthly' }));
const perRaceVm = new MembershipFeeViewModel(createMembershipFeeDto({ type: 'per_race' }));
const otherVm = new MembershipFeeViewModel(createMembershipFeeDto({ type: 'custom' as any }));
const otherVm = new MembershipFeeViewModel(createMembershipFeeDto({ type: 'custom' }));
expect(seasonVm.typeDisplay).toBe('Per Season');
expect(monthlyVm.typeDisplay).toBe('Monthly');