Skip to content

Commit

Permalink
fix(backend): payment handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Nov 1, 2024
1 parent 998ee25 commit a4cf57a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/backend/src/payment-method/handler/service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ describe('PaymentMethodHandlerService', (): void => {

await paymentMethodHandlerService.getQuote('ILP', options)

expect(ilpPaymentServiceGetQuoteSpy).toHaveBeenCalledWith(options)
expect(ilpPaymentServiceGetQuoteSpy).toHaveBeenCalledWith(
options,
undefined
)
})
test('calls localPaymentService for local payment type', async (): Promise<void> => {
const asset = await createAsset(deps)
Expand All @@ -91,7 +94,10 @@ describe('PaymentMethodHandlerService', (): void => {

await paymentMethodHandlerService.getQuote('LOCAL', options)

expect(localPaymentServiceGetQuoteSpy).toHaveBeenCalledWith(options)
expect(localPaymentServiceGetQuoteSpy).toHaveBeenCalledWith(
options,
undefined
)
})
})

Expand Down

0 comments on commit a4cf57a

Please sign in to comment.