From cf02afa5a8a7a0ebf4cfa6cbbe4268ede90c7665 Mon Sep 17 00:00:00 2001 From: Nnachevvv Date: Mon, 18 Sep 2023 00:11:15 +0300 Subject: [PATCH] Fix test --- apps/api/src/donations/events/stripe-payment.service.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/api/src/donations/events/stripe-payment.service.spec.ts b/apps/api/src/donations/events/stripe-payment.service.spec.ts index 87b152a28..07f4a997b 100644 --- a/apps/api/src/donations/events/stripe-payment.service.spec.ts +++ b/apps/api/src/donations/events/stripe-payment.service.spec.ts @@ -212,9 +212,7 @@ describe('StripePaymentService', () => { .spyOn(campaignService, 'getCampaignById') .mockImplementation(() => Promise.resolve(mockedCampaign)) - const paymentData = getPaymentData( - mockPaymentEventCancelled.data.object as Stripe.PaymentIntent, - ) + const paymentData = getPaymentData(mockPaymentEventFailed.data.object as Stripe.PaymentIntent) const mockedUpdateDonationPayment = jest .spyOn(campaignService, 'updateDonationPayment')