aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange/transactions.ts
diff options
context:
space:
mode:
authorJacob Evans <dekz@dekz.net>2018-06-05 08:25:45 +0800
committerGitHub <noreply@github.com>2018-06-05 08:25:45 +0800
commit70858603ed37de24ae47978a191b3f188f450182 (patch)
tree22cb18debbcc5aa16eccc23c04bfd86f8d1439eb /packages/contracts/test/exchange/transactions.ts
parent79472552aae4ef60ae20e26571c750cbeb02c552 (diff)
parent5c44db341fca8926fcf2329f96f0f7f7a5ce16f7 (diff)
downloaddexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.gz
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.bz2
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.lz
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.xz
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.tar.zst
dexon-sol-tools-70858603ed37de24ae47978a191b3f188f450182.zip
Merge pull request #633 from 0xProject/feature/contracts/errors
Update error handling
Diffstat (limited to 'packages/contracts/test/exchange/transactions.ts')
-rw-r--r--packages/contracts/test/exchange/transactions.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/exchange/transactions.ts b/packages/contracts/test/exchange/transactions.ts
index 9af8b522b..f31053ad3 100644
--- a/packages/contracts/test/exchange/transactions.ts
+++ b/packages/contracts/test/exchange/transactions.ts
@@ -18,7 +18,7 @@ import { ExchangeWrapper } from '../../src/utils/exchange_wrapper';
import { OrderFactory } from '../../src/utils/order_factory';
import { orderUtils } from '../../src/utils/order_utils';
import { TransactionFactory } from '../../src/utils/transaction_factory';
-import { ERC20BalancesByOwner, ExchangeStatus, SignedTransaction } from '../../src/utils/types';
+import { ERC20BalancesByOwner, OrderStatus, SignedTransaction } from '../../src/utils/types';
import { provider, txDefaults, web3Wrapper } from '../../src/utils/web3_wrapper';
chaiSetup.configure();
@@ -194,9 +194,9 @@ describe('Exchange transactions', () => {
it('should cancel the order when signed by maker and called by sender', async () => {
await exchangeWrapper.executeTransactionAsync(signedTx, senderAddress);
- const res = await exchangeWrapper.fillOrderAsync(signedOrder, senderAddress);
- const newBalances = await erc20Wrapper.getBalancesAsync();
- expect(newBalances).to.deep.equal(erc20Balances);
+ return expect(exchangeWrapper.fillOrderAsync(signedOrder, senderAddress)).to.be.rejectedWith(
+ constants.REVERT,
+ );
});
});
});