From 281338409b9dae5c75ea52c4a5a61c78bc4d768c Mon Sep 17 00:00:00 2001 From: Alexander Kochetkov Date: Thu, 22 Nov 2018 18:01:17 +0300 Subject: [PATCH] Test description fix in ERC20Pausable.test.js (#1501) Small change in test description, should be "allows to approve..." instead of "allow to transfer..." in approve section, where test actualy try to approve, not to transfer. --- test/token/ERC20/ERC20Pausable.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/token/ERC20/ERC20Pausable.test.js b/test/token/ERC20/ERC20Pausable.test.js index 05a0532ed..f89d20e25 100644 --- a/test/token/ERC20/ERC20Pausable.test.js +++ b/test/token/ERC20/ERC20Pausable.test.js @@ -144,7 +144,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA (await this.token.allowance(pauser, anotherAccount)).should.be.bignumber.equal(40); }); - it('allows to transfer when paused and then unpaused', async function () { + it('allows to approve when paused and then unpaused', async function () { await this.token.pause({ from: pauser }); await this.token.unpause({ from: pauser }); @@ -153,7 +153,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA (await this.token.allowance(pauser, anotherAccount)).should.be.bignumber.equal(40); }); - it('reverts when trying to transfer when paused', async function () { + it('reverts when trying to approve when paused', async function () { await this.token.pause({ from: pauser }); await shouldFail.reverting(this.token.approve(anotherAccount, 40, { from: pauser }));