No longer assigning awaits to temporary variables. (#1216)

This commit is contained in:
Nicolás Venturo
2018-08-17 16:10:40 -03:00
committed by GitHub
parent df9426f989
commit 20cf885430
43 changed files with 231 additions and 467 deletions

View File

@ -16,15 +16,12 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
});
it('should have an owner', async function () {
const owner = await claimable.owner();
owner.should.not.eq(0);
(await claimable.owner()).should.not.eq(0);
});
it('changes pendingOwner after transfer', async function () {
await claimable.transferOwnership(newOwner, { from: owner });
const pendingOwner = await claimable.pendingOwner();
pendingOwner.should.eq(newOwner);
(await claimable.pendingOwner()).should.eq(newOwner);
});
it('should prevent to claimOwnership from anyone', async function () {