fix issues in core

This commit is contained in:
2025-12-23 14:43:49 +01:00
parent 11492d1ff2
commit df5c20c5cc
62 changed files with 480 additions and 334 deletions

View File

@@ -66,12 +66,12 @@ describe('GetLeagueOwnerSummaryUseCase', () => {
expect(result.unwrap()).toBeUndefined();
expect(output.present).toHaveBeenCalledTimes(1);
const presented = output.present.mock.calls[0][0] as GetLeagueOwnerSummaryResult;
const presented = output.present.mock.calls[0]?.[0] as GetLeagueOwnerSummaryResult;
expect(presented.league).toBe(league);
expect(presented.owner).toBe(driver);
expect(presented.rating).toBe(0);
expect(presented.rank).toBe(0);
expect(presented?.league).toBe(league);
expect(presented?.owner).toBe(driver);
expect(presented?.rating).toBe(0);
expect(presented?.rank).toBe(0);
});
it('should return error when league does not exist', async () => {