|
@@ -59,6 +59,15 @@ contract('IncreasingPriceCrowdsale', function ([_, investor, wallet, purchaser])
|
|
|
(await this.crowdsale.finalRate()).should.be.bignumber.equal(finalRate);
|
|
|
});
|
|
|
|
|
|
+ it('returns a rate of 0 before the crowdsale starts', async function () {
|
|
|
+ (await this.crowdsale.getCurrentRate()).should.be.bignumber.equal(0);
|
|
|
+ });
|
|
|
+
|
|
|
+ it('returns a rate of 0 after the crowdsale ends', async function () {
|
|
|
+ await time.increaseTo(this.afterClosingTime);
|
|
|
+ (await this.crowdsale.getCurrentRate()).should.be.bignumber.equal(0);
|
|
|
+ });
|
|
|
+
|
|
|
it('at start', async function () {
|
|
|
await time.increaseTo(this.startTime);
|
|
|
await this.crowdsale.buyTokens(investor, { value, from: purchaser });
|