This commit is contained in:
2025-12-16 18:17:48 +01:00
parent 362894d1a5
commit ec7c0b8f2a
94 changed files with 4240 additions and 983 deletions

View File

@@ -139,7 +139,9 @@ describe('AcceptSponsorshipRequestUseCase', () => {
respondedBy: 'driver1',
});
expect(result).toBeDefined();
expect(result.isOk()).toBe(true);
const dto = result.unwrap();
expect(dto).toBeDefined();
expect(mockNotificationService.sendNotification).toHaveBeenCalledWith({
recipientId: 'sponsor1',
type: 'sponsorship_request_accepted',
@@ -149,7 +151,7 @@ describe('AcceptSponsorshipRequestUseCase', () => {
urgency: 'toast',
data: {
requestId: 'req1',
sponsorshipId: expect.any(String),
sponsorshipId: dto.sponsorshipId,
},
});
expect(mockPaymentGateway.processPayment).toHaveBeenCalledWith(