Commit 28133840 by Alexander Kochetkov Committed by Francisco Giordano

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.
parent a833c4b4
...@@ -144,7 +144,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA ...@@ -144,7 +144,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA
(await this.token.allowance(pauser, anotherAccount)).should.be.bignumber.equal(40); (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.pause({ from: pauser });
await this.token.unpause({ from: pauser }); await this.token.unpause({ from: pauser });
...@@ -153,7 +153,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA ...@@ -153,7 +153,7 @@ contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherA
(await this.token.allowance(pauser, anotherAccount)).should.be.bignumber.equal(40); (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 this.token.pause({ from: pauser });
await shouldFail.reverting(this.token.approve(anotherAccount, 40, { from: pauser })); await shouldFail.reverting(this.token.approve(anotherAccount, 40, { from: pauser }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment