website refactor
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user