Skip to content

Commit

Permalink
test(aave): fix one test
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed Nov 27, 2021
1 parent fe0d3e2 commit 3f5e63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/aave.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ describe('PositionsManagerForAave Contract', () => {

it('Only Owner should be able to create markets in peer-to-peer', async () => {
expect(marketsManagerForAave.connect(supplier1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).to.be.reverted;
expect(marketsManagerForAave.connect(borrower1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1')), MAX_INT).to.be.reverted;
expect(marketsManagerForAave.connect(owner).createMarket(config.tokens.aWeth.address, utils.parseUnits('1')), MAX_INT).not.be.reverted;
expect(marketsManagerForAave.connect(borrower1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).to.be.reverted;
expect(marketsManagerForAave.connect(owner).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).not.to.be.reverted;
});

it('marketsManagerForAave should not be changed after already set by Owner', async () => {
Expand Down

0 comments on commit 3f5e63f

Please sign in to comment.