refactor
This commit is contained in:
@@ -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' }];
|
||||
|
||||
Reference in New Issue
Block a user