aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/tokens/unlimited_allowance_token.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-04 05:43:23 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-04 05:43:23 +0800
commit52c956222e8a737c05bae49a97e457df81933000 (patch)
tree8f9cec16388d872fbabf61c33d8717daefb88344 /packages/contracts/test/tokens/unlimited_allowance_token.ts
parent9389d643924316a18ac8503211d39bb4ebf2156b (diff)
parent0900e0c85e76a34301ad5a336d2b195ed595aef7 (diff)
downloaddexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar.gz
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar.bz2
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar.lz
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar.xz
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.tar.zst
dexon-0x-contracts-52c956222e8a737c05bae49a97e457df81933000.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/portal-mobile-improvements
Diffstat (limited to 'packages/contracts/test/tokens/unlimited_allowance_token.ts')
-rw-r--r--packages/contracts/test/tokens/unlimited_allowance_token.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/tokens/unlimited_allowance_token.ts b/packages/contracts/test/tokens/unlimited_allowance_token.ts
index 09a24950c..8a3b20d0f 100644
--- a/packages/contracts/test/tokens/unlimited_allowance_token.ts
+++ b/packages/contracts/test/tokens/unlimited_allowance_token.ts
@@ -5,7 +5,7 @@ import * as chai from 'chai';
import { DummyERC20TokenContract } from '../../generated_contract_wrappers/dummy_e_r_c20_token';
import { artifacts } from '../utils/artifacts';
-import { expectRevertOrOtherErrorAsync } from '../utils/assertions';
+import { expectContractCallFailed } from '../utils/assertions';
import { chaiSetup } from '../utils/chai_setup';
import { constants } from '../utils/constants';
import { provider, txDefaults, web3Wrapper } from '../utils/web3_wrapper';
@@ -54,7 +54,7 @@ describe('UnlimitedAllowanceToken', () => {
it('should throw if owner has insufficient balance', async () => {
const ownerBalance = await token.balanceOf.callAsync(owner);
const amountToTransfer = ownerBalance.plus(1);
- return expectRevertOrOtherErrorAsync(
+ return expectContractCallFailed(
token.transfer.callAsync(spender, amountToTransfer, { from: owner }),
RevertReason.Erc20InsufficientBalance,
);
@@ -93,7 +93,7 @@ describe('UnlimitedAllowanceToken', () => {
await token.approve.sendTransactionAsync(spender, amountToTransfer, { from: owner }),
constants.AWAIT_TRANSACTION_MINED_MS,
);
- return expectRevertOrOtherErrorAsync(
+ return expectContractCallFailed(
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),
@@ -109,7 +109,7 @@ describe('UnlimitedAllowanceToken', () => {
const isSpenderAllowanceInsufficient = spenderAllowance.cmp(amountToTransfer) < 0;
expect(isSpenderAllowanceInsufficient).to.be.true();
- return expectRevertOrOtherErrorAsync(
+ return expectContractCallFailed(
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),