website refactor
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { describe, it, expect, beforeEach, vi, Mock } from 'vitest';
|
||||
import { describe, it, expect, beforeEach, vi, type Mock } from 'vitest';
|
||||
import {
|
||||
GetSeasonDetailsUseCase,
|
||||
type GetSeasonDetailsInput,
|
||||
type GetSeasonDetailsResult,
|
||||
type GetSeasonDetailsErrorCode,
|
||||
} from './GetSeasonDetailsUseCase';
|
||||
import { Season } from '../../domain/entities/season/Season';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
|
||||
|
||||
describe('GetSeasonDetailsUseCase', () => {
|
||||
let useCase: GetSeasonDetailsUseCase;
|
||||
@@ -19,7 +19,7 @@ describe('GetSeasonDetailsUseCase', () => {
|
||||
findById: vi.fn(),
|
||||
};
|
||||
|
||||
useCase = new GetSeasonDetailsUseCase(seasonRepository as any);
|
||||
useCase = new GetSeasonDetailsUseCase(seasonRepository as unknown as SeasonRepository);
|
||||
});
|
||||
|
||||
it('returns full details for a season', async () => {
|
||||
|
||||
Reference in New Issue
Block a user