resolve todos in website
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
import { SendPerformanceSummaryUseCase } from './SendPerformanceSummaryUseCase';
|
||||
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 { MainRaceCompletedEvent } from '../../domain/events/MainRaceCompleted';
|
||||
import type { IRaceEventRepository } from '../../domain/repositories/IRaceEventRepository';
|
||||
import type { IResultRepository } from '../../domain/repositories/IResultRepository';
|
||||
import type { MainRaceCompletedEvent } from '../../domain/events/MainRaceCompleted';
|
||||
import { SendPerformanceSummaryUseCase } from './SendPerformanceSummaryUseCase';
|
||||
|
||||
describe('SendPerformanceSummaryUseCase', () => {
|
||||
it('sends performance summary notifications to all participating drivers', async () => {
|
||||
const mockNotificationService = {
|
||||
sendNotification: vi.fn(),
|
||||
} as unknown as INotificationService;
|
||||
} as unknown as NotificationService;
|
||||
|
||||
const mockRaceEvent = {
|
||||
id: 'race-1',
|
||||
@@ -106,7 +106,7 @@ describe('SendPerformanceSummaryUseCase', () => {
|
||||
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),
|
||||
|
||||
Reference in New Issue
Block a user