website refactor
This commit is contained in:
@@ -2,7 +2,6 @@ import { describe, it, expect, beforeEach, vi, type Mock } from 'vitest';
|
||||
import {
|
||||
GetLeagueStatsUseCase,
|
||||
type GetLeagueStatsInput,
|
||||
type GetLeagueStatsResult,
|
||||
type GetLeagueStatsErrorCode,
|
||||
} from './GetLeagueStatsUseCase';
|
||||
import type { LeagueMembershipRepository } from '../../domain/repositories/LeagueMembershipRepository';
|
||||
@@ -27,8 +26,8 @@ describe('GetLeagueStatsUseCase', () => {
|
||||
findByLeagueId: vi.fn(),
|
||||
};
|
||||
getDriverRating = vi.fn();
|
||||
useCase = new GetLeagueStatsUseCase(leagueMembershipRepository as any,
|
||||
raceRepository as any,
|
||||
useCase = new GetLeagueStatsUseCase(leagueMembershipRepository as unknown as LeagueMembershipRepository,
|
||||
raceRepository as unknown as RaceRepository,
|
||||
getDriverRating);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user