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 a6d7192 commit 0322afd
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 ?? 0).toBe(
expect(payment.grantSpentDebitAmount?.value ?? 0n).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 ?? 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))
)
Expand Down

0 comments on commit 0322afd

Please sign in to comment.