website refactor
This commit is contained in:
@@ -3,11 +3,12 @@ import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorC
|
||||
import {
|
||||
GetLeagueStandingsUseCase,
|
||||
type GetLeagueStandingsInput,
|
||||
type GetLeagueStandingsResult,
|
||||
type GetLeagueStandingsErrorCode,
|
||||
} from './GetLeagueStandingsUseCase';
|
||||
import { Standing } from '../../domain/entities/Standing';
|
||||
import { Driver } from '../../domain/entities/Driver';
|
||||
import type { StandingRepository } from '../../domain/repositories/StandingRepository';
|
||||
import type { DriverRepository } from '../../domain/repositories/DriverRepository';
|
||||
|
||||
describe('GetLeagueStandingsUseCase', () => {
|
||||
let useCase: GetLeagueStandingsUseCase;
|
||||
@@ -26,8 +27,8 @@ describe('GetLeagueStandingsUseCase', () => {
|
||||
findById: vi.fn(),
|
||||
};
|
||||
|
||||
useCase = new GetLeagueStandingsUseCase(standingRepository as any,
|
||||
driverRepository as any);
|
||||
useCase = new GetLeagueStandingsUseCase(standingRepository as unknown as StandingRepository,
|
||||
driverRepository as unknown as DriverRepository);
|
||||
});
|
||||
|
||||
it('should return standings with drivers mapped', async () => {
|
||||
|
||||
Reference in New Issue
Block a user