website refactor
This commit is contained in:
@@ -93,7 +93,7 @@ describe('SendPerformanceSummaryUseCase', () => {
|
||||
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');
|
||||
@@ -109,8 +109,6 @@ describe('SendPerformanceSummaryUseCase', () => {
|
||||
}),
|
||||
);
|
||||
|
||||
const presentedRaw = expect(presentedRaw).toBeDefined();
|
||||
const presented = presentedRaw as SendPerformanceSummaryResult;
|
||||
expect(presented).toEqual({
|
||||
leagueId: 'league-1',
|
||||
raceId: 'race-1',
|
||||
|
||||
Reference in New Issue
Block a user