Skip to content

Commit

Permalink
chore: Bring back original test behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Dec 9, 2024
1 parent 0c5cb33 commit 50c5831
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')).rejects.toThrow(new NotAcceptableException('Campaign cannot accept donations in state: complete'),)
await expect(controller.setupIntentToSubscription('123')).toResolve()
expect(stripeMock.setupIntents.retrieve).toHaveBeenCalledWith('123', {
expand: ['payment_method'],
})
Expand Down

0 comments on commit 50c5831

Please sign in to comment.