website refactor
This commit is contained in:
@@ -2,14 +2,13 @@ import { describe, it, expect, beforeEach, vi, type Mock } from 'vitest';
|
||||
import {
|
||||
GetLeagueSeasonsUseCase,
|
||||
type GetLeagueSeasonsInput,
|
||||
type GetLeagueSeasonsResult,
|
||||
type GetLeagueSeasonsErrorCode,
|
||||
} from './GetLeagueSeasonsUseCase';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
|
||||
import type { LeagueRepository } from '../../domain/repositories/LeagueRepository';
|
||||
import { Season } from '../../domain/entities/season/Season';
|
||||
import { League } from '../../domain/entities/League';
|
||||
import type { LeagueRepository } from '../../domain/repositories/LeagueRepository';
|
||||
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
|
||||
describe('GetLeagueSeasonsUseCase', () => {
|
||||
let useCase: GetLeagueSeasonsUseCase;
|
||||
@@ -31,8 +30,10 @@ describe('GetLeagueSeasonsUseCase', () => {
|
||||
exists: vi.fn(),
|
||||
};
|
||||
|
||||
useCase = new GetLeagueSeasonsUseCase(leagueRepository as any,
|
||||
seasonRepository as any);
|
||||
useCase = new GetLeagueSeasonsUseCase(
|
||||
leagueRepository as unknown as LeagueRepository,
|
||||
seasonRepository as unknown as SeasonRepository
|
||||
);
|
||||
});
|
||||
|
||||
it('should return seasons with correct isParallelActive flags on success', async () => {
|
||||
|
||||
Reference in New Issue
Block a user