[TokenVesting] Fix should-revoke test

This commit is contained in:
Martín Triay
2017-09-28 02:40:38 -03:00
parent a227b212f5
commit 645edfc936

View File

@ -57,9 +57,9 @@ contract('TokenVesting', function ([_, owner, beneficiary]) {
balance.should.bignumber.equal(amount);
});
it('should not fail to be revoked by owner if revocable is set', async function () {
it('should be revoked by owner if revocable is set', async function () {
const vesting = await TokenVesting.new(beneficiary, this.cliff, this.end, true, { from: owner } );
await vesting.revoke(this.token.address, { from: owner }).should.be.rejectedWith(EVMThrow);
await vesting.revoke(this.token.address, { from: owner }).should.be.fulfilled;
});
it('should fail to be revoked by owner if revocable not set', async function () {