website refactor
This commit is contained in:
@@ -3,6 +3,10 @@ import {
|
||||
CreateLeagueWithSeasonAndScoringUseCase,
|
||||
type CreateLeagueWithSeasonAndScoringCommand
|
||||
} from './CreateLeagueWithSeasonAndScoringUseCase';
|
||||
import type { LeagueRepository } from '../../domain/repositories/LeagueRepository';
|
||||
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
|
||||
import type { LeagueScoringConfigRepository } from '../../domain/repositories/LeagueScoringConfigRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
describe('CreateLeagueWithSeasonAndScoringUseCase', () => {
|
||||
let useCase: CreateLeagueWithSeasonAndScoringUseCase;
|
||||
@@ -40,11 +44,13 @@ describe('CreateLeagueWithSeasonAndScoringUseCase', () => {
|
||||
warn: vi.fn(),
|
||||
error: vi.fn(),
|
||||
};
|
||||
useCase = new CreateLeagueWithSeasonAndScoringUseCase(leagueRepository as any,
|
||||
seasonRepository as any,
|
||||
leagueScoringConfigRepository as any,
|
||||
useCase = new CreateLeagueWithSeasonAndScoringUseCase(
|
||||
leagueRepository as unknown as LeagueRepository,
|
||||
seasonRepository as unknown as SeasonRepository,
|
||||
leagueScoringConfigRepository as unknown as LeagueScoringConfigRepository,
|
||||
getLeagueScoringPresetById,
|
||||
logger as any);
|
||||
logger as unknown as Logger
|
||||
);
|
||||
});
|
||||
|
||||
it('should create league, season, and scoring successfully', async () => {
|
||||
|
||||
Reference in New Issue
Block a user