Fix tests for revokable/non burn vesting calendar

This commit is contained in:
Jorge Izquierdo
2017-05-21 10:44:03 +02:00
parent 5b2f0aa93d
commit a1d2b673c6

View File

@ -23,12 +23,12 @@ contract('VestedToken', function(accounts) {
assert.equal(await token.transferableTokens(receiver, now), tokenAmount);
})
describe('getting a token grant', async () => {
describe('getting a revokable/non-burnable token grant', async () => {
const cliff = 10000
const vesting = 20000 // seconds
beforeEach(async () => {
await token.grantVestedTokens(receiver, tokenAmount, now, now + cliff, now + vesting, { from: granter })
await token.grantVestedTokens(receiver, tokenAmount, now, now + cliff, now + vesting, true, false, { from: granter })
})
it('tokens are received', async () => {