Skip to content

Commit

Permalink
pm test cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Aug 23, 2023
1 parent d3e4557 commit 3c8c7ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/position-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ describe("Describe entity assertions", () => {
assert.entityCount("RedeemPosition", 1)
})

// identified an issue with the duplicate recording of lend info on handleMoveLiquidity and handleTransferLP
test("MoveLiquidity", () => {
assert.entityCount("Mint", 0)
assert.entityCount("MemorializePosition", 0)
Expand Down Expand Up @@ -325,7 +324,6 @@ describe("Describe entity assertions", () => {

// check position attributes
assertPosition(lender, pool, tokenId, tokenContractAddress)
// TODO: check index attributes -> assertPositionLend

assert.entityCount("Account", 1)
assert.entityCount("Mint", 1)
Expand All @@ -350,6 +348,10 @@ describe("Describe entity assertions", () => {
const newMoveLiquidityEvent = createMoveLiquidityEvent(lender, tokenId, fromIndex, toIndex, lpRedeemedFrom, lpRedeemedTo)
handleMoveLiquidity(newMoveLiquidityEvent)

/********************/
/*** Assert State ***/
/********************/

// check position attributes
assertPosition(lender, pool, tokenId, tokenContractAddress)

Expand Down

0 comments on commit 3c8c7ab

Please sign in to comment.