website refactor
This commit is contained in:
@@ -2,7 +2,6 @@ import { beforeEach, describe, expect, it, vi, type Mock } from 'vitest';
|
||||
import {
|
||||
GetSeasonSponsorshipsUseCase,
|
||||
type GetSeasonSponsorshipsInput,
|
||||
type GetSeasonSponsorshipsResult,
|
||||
type GetSeasonSponsorshipsErrorCode,
|
||||
} from './GetSeasonSponsorshipsUseCase';
|
||||
import type { SeasonSponsorshipRepository } from '../../domain/repositories/SeasonSponsorshipRepository';
|
||||
@@ -52,11 +51,13 @@ describe('GetSeasonSponsorshipsUseCase', () => {
|
||||
findByLeagueId: vi.fn(),
|
||||
};
|
||||
|
||||
useCase = new GetSeasonSponsorshipsUseCase(seasonSponsorshipRepository as any,
|
||||
seasonRepository as any,
|
||||
leagueRepository as any,
|
||||
leagueMembershipRepository as any,
|
||||
raceRepository as any);
|
||||
useCase = new GetSeasonSponsorshipsUseCase(
|
||||
seasonSponsorshipRepository as unknown as SeasonSponsorshipRepository,
|
||||
seasonRepository as unknown as SeasonRepository,
|
||||
leagueRepository as unknown as LeagueRepository,
|
||||
leagueMembershipRepository as unknown as LeagueMembershipRepository,
|
||||
raceRepository as unknown as RaceRepository
|
||||
);
|
||||
});
|
||||
|
||||
it('returns SEASON_NOT_FOUND when season does not exist', async () => {
|
||||
|
||||
Reference in New Issue
Block a user