Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Jun 18, 2024
1 parent 710897d commit a6d7192
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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).toBe(
expect(payment.grantSpentDebitAmount?.value ?? 0).toBe(
BigInt(debitAmount.value * BigInt(i))
)
}
Expand Down Expand Up @@ -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).toBe(
expect(payment.grantSpentReceiveAmount?.value ?? 0).toBe(
// Must account for interledger/pay off-by-one issue (even with 0 slippage/fees)
BigInt((debitAmount.value - BigInt(1)) * BigInt(i))
)
Expand Down

0 comments on commit a6d7192

Please sign in to comment.