Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnachevvv committed Sep 17, 2023
1 parent 975a7df commit cf02afa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/api/src/donations/events/stripe-payment.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit cf02afa

Please sign in to comment.