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

Commit

Permalink
Test setLotSizes with non-empty bad array
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasDotSol committed Jan 31, 2020
1 parent c300808 commit 7e890dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion implementation/test/TBTCSystemTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,21 @@ contract('TBTCSystem', (accounts) => {
expect(eventList[0].returnValues._lotSizes).to.eql(['100000000', '1000000']) // deep equality check
})

it('reverts if lot size array does not contain a 1BTC lot size', async () => {
it('reverts if lot size array is empty', async () => {
const lotSizes = []
await expectThrow(
tbtcSystem.setLotSizes(lotSizes),
'Lot size array must always contain 1BTC'
)
})

it('reverts if lot size array does not contain a 1BTC lot size', async () => {
const lotSizes = [10**7]
await expectThrow(
tbtcSystem.setLotSizes(lotSizes),
'Lot size array must always contain 1BTC'
)
})
})

describe('emergencyPauseNewDeposits', async () => {
Expand Down

0 comments on commit 7e890dd

Please sign in to comment.