added examples

This commit is contained in:
Aniket-Engg
2018-12-21 16:50:16 +05:30
parent a781955434
commit c3c5d767ff
7 changed files with 128 additions and 162 deletions

View File

@ -22,17 +22,17 @@ contract('SafeERC20', function () {
await shouldFail.reverting(this.helper.doFailingApprove());
});
it('should throw on failed increaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingIncreaseAllowance());
});
it('should throw on failed increaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingIncreaseAllowance());
});
it('should throw on failed decreaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
});
it('should throw on failed decreaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
});
it('should not throw on succeeding transfer', async function () {
await this.helper.doSucceedingTransfer();
});
it('should not throw on succeeding transfer', async function () {
await this.helper.doSucceedingTransfer();
});
it('reverts on decreaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());