website refactor

This commit is contained in:
2026-01-16 19:38:55 +01:00
parent 095885544b
commit 26fc726556
73 changed files with 232 additions and 213 deletions

View File

@@ -2,14 +2,13 @@ import { describe, it, expect, beforeEach, vi, type Mock } from 'vitest';
import {
GetLeagueSeasonsUseCase,
type GetLeagueSeasonsInput,
type GetLeagueSeasonsResult,
type GetLeagueSeasonsErrorCode,
} from './GetLeagueSeasonsUseCase';
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
import type { LeagueRepository } from '../../domain/repositories/LeagueRepository';
import { Season } from '../../domain/entities/season/Season';
import { League } from '../../domain/entities/League';
import type { LeagueRepository } from '../../domain/repositories/LeagueRepository';
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
describe('GetLeagueSeasonsUseCase', () => {
let useCase: GetLeagueSeasonsUseCase;
@@ -31,8 +30,10 @@ describe('GetLeagueSeasonsUseCase', () => {
exists: vi.fn(),
};
useCase = new GetLeagueSeasonsUseCase(leagueRepository as any,
seasonRepository as any);
useCase = new GetLeagueSeasonsUseCase(
leagueRepository as unknown as LeagueRepository,
seasonRepository as unknown as SeasonRepository
);
});
it('should return seasons with correct isParallelActive flags on success', async () => {