website refactor

This commit is contained in:
2026-01-16 15:20:25 +01:00
parent 7e02fc3ea5
commit 37b1aa626c
325 changed files with 2167 additions and 2782 deletions

View File

@@ -95,15 +95,13 @@ describe('SendFinalResultsUseCase', () => {
const result = await useCase.execute(input);
expect(result.isOk()).toBe(true);
expect(result.unwrap()).toBeUndefined();
const presented = result.unwrap();
expect(leagueRepository.findById).toHaveBeenCalledWith('league-1');
expect(raceEventRepository.findById).toHaveBeenCalledWith('race-1');
expect(resultRepository.findByRaceId).toHaveBeenCalledWith('session-1');
expect(notificationService.sendNotification).toHaveBeenCalledTimes(2);
const presentedRaw = expect(presentedRaw).toBeDefined();
const presented = presentedRaw as SendFinalResultsResult;
expect(presented).toEqual({
leagueId: 'league-1',
raceId: 'race-1',