aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-02 04:08:36 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-06-07 03:39:43 +0800
commitcd7cb025adeac3c499cc548456e4a8d181ab76e6 (patch)
tree549e33e32a6db16eac18021be5380c5018c38a8a /packages/contracts/test
parent96da26777851cf3fcc00e8729f847ea631d023c1 (diff)
downloaddexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.gz
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.bz2
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.lz
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.xz
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.zst
dexon-sol-tools-cd7cb025adeac3c499cc548456e4a8d181ab76e6.zip
Update exchange/transactions tests for Geth error messages
Diffstat (limited to 'packages/contracts/test')
-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 8cd800ee2..7970fd306 100644
--- a/packages/contracts/test/exchange/transactions.ts
+++ b/packages/contracts/test/exchange/transactions.ts
@@ -245,7 +245,7 @@ describe('Exchange transactions', () => {
orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder);
const takerAssetFillAmount = signedOrder.takerAssetAmount;
const salt = generatePseudoRandomSalt();
- return expect(
+ return expectRevertOrAlwaysFailingTransaction(
whitelist.fillOrderIfWhitelisted.sendTransactionAsync(
orderWithoutExchangeAddress,
takerAssetFillAmount,
@@ -253,7 +253,7 @@ describe('Exchange transactions', () => {
signedOrder.signature,
{ from: takerAddress },
),
- ).to.be.rejectedWith(constants.REVERT);
+ );
});
it('should revert if taker has not been whitelisted', async () => {
@@ -265,7 +265,7 @@ describe('Exchange transactions', () => {
orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder);
const takerAssetFillAmount = signedOrder.takerAssetAmount;
const salt = generatePseudoRandomSalt();
- return expect(
+ return expectRevertOrAlwaysFailingTransaction(
whitelist.fillOrderIfWhitelisted.sendTransactionAsync(
orderWithoutExchangeAddress,
takerAssetFillAmount,
@@ -273,7 +273,7 @@ describe('Exchange transactions', () => {
signedOrder.signature,
{ from: takerAddress },
),
- ).to.be.rejectedWith(constants.REVERT);
+ );
});
it('should fill the order if maker and taker have been whitelisted', async () => {