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