|
|
@ -19,6 +19,15 @@ contract('CappedCrowdsale', function ([_, wallet]) { |
|
|
|
const cap = ether(300) |
|
|
|
const cap = ether(300) |
|
|
|
const lessThanCap = ether(60) |
|
|
|
const lessThanCap = ether(60) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe('creating a valid crowdsale', function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('should fail with zero cap', async function () { |
|
|
|
|
|
|
|
await CappedCrowdsale.new(this.startBlock, this.endBlock, rate, wallet, 0).should.be.rejectedWith(EVMThrow); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
beforeEach(async function () { |
|
|
|
beforeEach(async function () { |
|
|
|
this.startBlock = web3.eth.blockNumber + 10 |
|
|
|
this.startBlock = web3.eth.blockNumber + 10 |
|
|
|
this.endBlock = web3.eth.blockNumber + 20 |
|
|
|
this.endBlock = web3.eth.blockNumber + 20 |
|
|
|