Skip to content

Commit

Permalink
chore: Try to debug by the thrown error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Dec 9, 2024
1 parent 0a5f9ef commit 4675434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/stripe/stripe.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe('StripeController', () => {
} as Campaign)
try {

await expect(controller.setupIntentToSubscription('123')).toResolve()
await expect(controller.setupIntentToSubscription('123')).rejects.toThrow(new NotAcceptableException('Campaign cannot accept donations in state: complete'),)
expect(stripeMock.setupIntents.retrieve).toHaveBeenCalledWith('123', {
expand: ['payment_method'],
})
Expand Down

0 comments on commit 4675434

Please sign in to comment.