Skip to content

Commit

Permalink
PR Feedback round 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Dec 18, 2023
1 parent 4aa9028 commit 7c040e9
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/adapters/optimisticAuctionRebalanceExtension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,6 @@ describe("OptimisticAuctionRebalanceExtension", () => {
).to.not.be.reverted;
});

it("should revert if module is initialized and extension is not", async () => {
const extension = await deployer.extensions.deployOptimisticAuctionRebalanceExtension(
subjectBaseManager,
subjectAuctionRebalanceModule,
subjectUseAssetAllowlist,
subjectAllowedAssets,
);
await expect(
extension.connect(operator.wallet).initialize(),
).to.be.revertedWith("Must be adapter");
});

it("should revert if module is initialized without being added", async () => {
const extension = await deployer.extensions.deployOptimisticAuctionRebalanceExtension(
subjectBaseManager,
Expand Down Expand Up @@ -738,19 +726,6 @@ describe("OptimisticAuctionRebalanceExtension", () => {
});
});
});

describe("#removeAdapter", () => {
async function subject() {
return await baseManager
.connect(operator.wallet)
.removeAdapter(auctionRebalanceExtension.address);
}
it("should remove the extension", async () => {
expect(await baseManager.isAdapter(auctionRebalanceExtension.address)).to.be.true;
await subject();
expect(await baseManager.isAdapter(auctionRebalanceExtension.address)).to.be.false;
});
});
});
});
});
Expand Down

0 comments on commit 7c040e9

Please sign in to comment.