resolve todos in website

This commit is contained in:
2025-12-20 12:22:48 +01:00
parent a87cf27fb9
commit 20588e1c0b
39 changed files with 1238 additions and 359 deletions

View File

@@ -1,15 +1,15 @@
import { describe, it, expect, vi } from 'vitest';
import { SendFinalResultsUseCase } from './SendFinalResultsUseCase';
import type { INotificationService } from '../../../notifications/application/ports/INotificationService';
import { describe, expect, it, vi } from 'vitest';
import type { NotificationService } from '../../../notifications/application/ports/NotificationService';
import type { RaceEventStewardingClosedEvent } from '../../domain/events/RaceEventStewardingClosed';
import type { IRaceEventRepository } from '../../domain/repositories/IRaceEventRepository';
import type { IResultRepository } from '../../domain/repositories/IResultRepository';
import type { RaceEventStewardingClosedEvent } from '../../domain/events/RaceEventStewardingClosed';
import { SendFinalResultsUseCase } from './SendFinalResultsUseCase';
describe('SendFinalResultsUseCase', () => {
it('sends final results notifications to all participating drivers', async () => {
const mockNotificationService = {
sendNotification: vi.fn(),
} as unknown as INotificationService;
} as unknown as NotificationService;
const mockRaceEvent = {
id: 'race-1',
@@ -107,7 +107,7 @@ describe('SendFinalResultsUseCase', () => {
it('skips sending notifications if race event not found', async () => {
const mockNotificationService = {
sendNotification: vi.fn(),
} as unknown as INotificationService;
} as unknown as NotificationService;
const mockRaceEventRepository = {
findById: vi.fn().mockResolvedValue(null),
@@ -146,7 +146,7 @@ describe('SendFinalResultsUseCase', () => {
it('skips sending notifications if no main race session', async () => {
const mockNotificationService = {
sendNotification: vi.fn(),
} as unknown as INotificationService;
} as unknown as NotificationService;
const mockRaceEvent = {
id: 'race-1',