This commit is contained in:
2025-12-16 21:44:20 +01:00
parent 7532c7ed6d
commit 8c67081953
38 changed files with 818 additions and 1321 deletions

View File

@@ -124,7 +124,7 @@ describe('GetLeagueFullConfigUseCase', () => {
const result = await useCase.execute(params);
expect(result.isOk()).toBe(true);
const viewModel = result.unwrap();
const viewModel = result.value!;
expect(viewModel).toEqual(mockViewModel);
expect(presenter.reset).toHaveBeenCalled();
expect(presenter.present).toHaveBeenCalledWith({
@@ -145,7 +145,7 @@ describe('GetLeagueFullConfigUseCase', () => {
expect(result.isErr()).toBe(true);
const error = result.unwrapErr();
expect(error.code).toBe('LEAGUE_NOT_FOUND');
expect(error.details.message).toBe('League with id league-1 not found');
expect(error.details!.message).toBe('League with id league-1 not found');
});
it('should handle no active season', async () => {