Minor test style improvements (#1219)

* Changed .eq to .equal

* Changed equal(bool) to .to.be.bool

* Changed be.bool to equal(bool), disallowed unused expressions.
This commit is contained in:
Nicolás Venturo
2018-08-22 16:05:18 -03:00
committed by GitHub
parent 64c324e37c
commit 4fb9bb7020
33 changed files with 109 additions and 114 deletions

View File

@ -30,9 +30,9 @@ contract('DelayedClaimable', function ([_, owner, newOwner]) {
(await this.delayedClaimable.start()).should.be.bignumber.equal(0);
(await this.delayedClaimable.pendingOwner()).should.eq(newOwner);
(await this.delayedClaimable.pendingOwner()).should.equal(newOwner);
await this.delayedClaimable.claimOwnership({ from: newOwner });
(await this.delayedClaimable.owner()).should.eq(newOwner);
(await this.delayedClaimable.owner()).should.equal(newOwner);
});
it('changes pendingOwner after transfer fails', async function () {
@ -43,9 +43,9 @@ contract('DelayedClaimable', function ([_, owner, newOwner]) {
(await this.delayedClaimable.start()).should.be.bignumber.equal(100);
(await this.delayedClaimable.pendingOwner()).should.eq(newOwner);
(await this.delayedClaimable.pendingOwner()).should.equal(newOwner);
await assertRevert(this.delayedClaimable.claimOwnership({ from: newOwner }));
(await this.delayedClaimable.owner()).should.not.eq(newOwner);
(await this.delayedClaimable.owner()).should.not.equal(newOwner);
});
it('set end and start invalid values fail', async function () {