aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 22:28:55 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-08 22:28:55 +0800
commit49d8b5b18b48604f852038662a0bb0ea598671e0 (patch)
tree2dc6b4c81a2cec6660aad506e571b34b0626358d /test/exchange_wrapper_test.ts
parent96e52ea3cc8efbbff1c43ed87b45e2fc3f57348b (diff)
downloaddexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar.gz
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar.bz2
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar.lz
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar.xz
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.tar.zst
dexon-sol-tools-49d8b5b18b48604f852038662a0bb0ea598671e0.zip
Address feedback
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 2d7810bcc..5cc864d12 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -229,9 +229,9 @@ describe('ExchangeWrapper', () => {
const signedOrder = await fillScenarios.createFillableSignedOrderAsync(
makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount,
);
- const nonExistentSenderAddress = userAddresses[6];
+ const nonTakerAddress = userAddresses[6];
return expect(zeroEx.exchange.fillOrderAsync(
- signedOrder, fillTakerAmount, shouldCheckTransfer, nonExistentSenderAddress,
+ signedOrder, fillTakerAmount, shouldCheckTransfer, nonTakerAddress,
)).to.be.rejectedWith(ExchangeContractErrs.TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER);
});
it('should throw when order is expired', async () => {
@@ -520,7 +520,7 @@ describe('ExchangeWrapper', () => {
order: signedOrderWithDifferentMaker,
takerTokenCancelAmount: cancelAmount,
},
- ])).to.be.rejectedWith('Can not cancel orders from multiple makers in a single batch');
+ ])).to.be.rejectedWith(ExchangeContractErrs.MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH);
});
});
describe('successful batch cancels', () => {