Skip to content

Commit

Permalink
fixup! test(fast-usdc): prune testBorrow(...), testRepay(...) tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 3, 2024
1 parent f829f64 commit fbfe008
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/fast-usdc/test/pool-share-math.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,17 @@ test('repay succeeds with no Pool or Contract Fee', t => {
totalBorrows: make(USDC, 100n),
};
const fromSeatAllocation = amounts;
t.notThrows(() =>
repayCalc(
shareWorth,
fromSeatAllocation,
amounts,
encumberedBalance,
poolStats,
),
const actual = repayCalc(
shareWorth,
fromSeatAllocation,
amounts,
encumberedBalance,
poolStats,
);
t.like(actual, {
shareWorth,
encumberedBalance: {
value: 75n,
},
});
});

0 comments on commit fbfe008

Please sign in to comment.