Refactor and remove moment.js usages

This commit is contained in:
Jakub Wojciechowski
2017-08-14 00:27:09 +02:00
parent 99e0f5b5cb
commit e86ac90853
8 changed files with 9 additions and 11 deletions

View File

@ -18,7 +18,7 @@ contract('TokenTimelock', function ([_, owner, beneficiary]) {
beforeEach(async function () {
this.token = await MintableToken.new({from: owner})
this.releaseTime = latestTime().unix() + duration.years(1)
this.releaseTime = latestTime() + duration.years(1)
this.timelock = await TokenTimelock.new(this.token.address, beneficiary, this.releaseTime)
await this.token.mint(this.timelock.address, amount, {from: owner})
})