refactor
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user