diff --git a/packages/backend/src/open_payments/payment/outgoing/service.test.ts b/packages/backend/src/open_payments/payment/outgoing/service.test.ts index 7084fc7dfd..41085233d4 100644 --- a/packages/backend/src/open_payments/payment/outgoing/service.test.ts +++ b/packages/backend/src/open_payments/payment/outgoing/service.test.ts @@ -531,7 +531,7 @@ describe('OutgoingPaymentService', (): void => { for (let i = 0; i < 3; i++) { const payment = await outgoingPaymentService.create(options) assert.ok(!isOutgoingPaymentError(payment)) - expect(payment.grantSpentDebitAmount?.value ?? 0).toBe( + expect(payment.grantSpentDebitAmount?.value ?? 0n).toBe( BigInt(debitAmount.value * BigInt(i)) ) } @@ -576,7 +576,7 @@ describe('OutgoingPaymentService', (): void => { for (let i = 0; i < 3; i++) { const payment = await outgoingPaymentService.create(options) assert.ok(!isOutgoingPaymentError(payment)) - expect(payment.grantSpentReceiveAmount?.value ?? 0).toBe( + expect(payment.grantSpentReceiveAmount?.value ?? 0n).toBe( // Must account for interledger/pay off-by-one issue (even with 0 slippage/fees) BigInt((debitAmount.value - BigInt(1)) * BigInt(i)) )