Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
test setting invalid collateral ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Mar 7, 2022
1 parent 113ece1 commit 95b85d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,11 @@ describe('Entity', () => {
await entity.createSimplePolicy(id, startDate, maturationDate, unit, 0, stakeholders, signatures).should.be.rejectedWith('limit not > 0')
})

it('collateral ratio is valid', async () => {
await entity.updateAllowSimplePolicy(true, { from: systemManager })
await entity.updateEnabledCurrency(unit, 1500, 100, { from: systemManager }).should.be.rejectedWith('collateral ratio is 0-1000')
})

it('limit is below max capital', async () => {
await entity.updateAllowSimplePolicy(true, { from: systemManager })
await entity.updateEnabledCurrency(unit, 500, 100, { from: systemManager })
Expand Down

0 comments on commit 95b85d2

Please sign in to comment.