This commit is contained in:
2025-12-16 21:05:01 +01:00
parent f61e3a4e5a
commit 7532c7ed6d
207 changed files with 7861 additions and 2606 deletions

View File

@@ -4,8 +4,7 @@ import type { IStandingRepository } from '../../domain/repositories/IStandingRep
import type { IResultRepository } from '../../domain/repositories/IResultRepository';
import type { IPenaltyRepository } from '../../domain/repositories/IPenaltyRepository';
import type { IRaceRepository } from '../../domain/repositories/IRaceRepository';
import type { DriverRatingPort } from './DriverRatingPort';
import type { GetLeagueDriverSeasonStatsUseCaseParams } from './GetLeagueDriverSeasonStatsUseCaseParams';
import type { DriverRatingPort } from '../ports/DriverRatingPort';
describe('GetLeagueDriverSeasonStatsUseCase', () => {
let useCase: GetLeagueDriverSeasonStatsUseCase;
@@ -42,7 +41,7 @@ describe('GetLeagueDriverSeasonStatsUseCase', () => {
});
it('should return league driver season stats for given league id', async () => {
const params: GetLeagueDriverSeasonStatsUseCaseParams = { leagueId: 'league-1' };
const params = { leagueId: 'league-1' };
const mockStandings = [
{ driverId: 'driver-1', position: 1, points: 100, racesCompleted: 5 },
@@ -82,7 +81,7 @@ describe('GetLeagueDriverSeasonStatsUseCase', () => {
});
it('should handle no penalties', async () => {
const params: GetLeagueDriverSeasonStatsUseCaseParams = { leagueId: 'league-1' };
const params = { leagueId: 'league-1' };
const mockStandings = [{ driverId: 'driver-1', position: 1, points: 100, racesCompleted: 5 }];
const mockRaces = [{ id: 'race-1' }];