aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-03 23:22:17 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-05 21:58:41 +0800
commitab8544b0ff61c993d0366a906bd7b1aeed11b70a (patch)
tree9a7cd3813f1abaed5c95e19fe36c0d4ced13e501 /packages/contract-wrappers/test
parentb68d16820fbc2cab529a95a0dfabc645a9e2de34 (diff)
downloaddexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar.gz
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar.bz2
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar.lz
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar.xz
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.tar.zst
dexon-sol-tools-ab8544b0ff61c993d0366a906bd7b1aeed11b70a.zip
Rearrange assertions t match parameter order
Diffstat (limited to 'packages/contract-wrappers/test')
-rw-r--r--packages/contract-wrappers/test/exchange_wrapper_test.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/contract-wrappers/test/exchange_wrapper_test.ts b/packages/contract-wrappers/test/exchange_wrapper_test.ts
index 615b4ab67..15927641b 100644
--- a/packages/contract-wrappers/test/exchange_wrapper_test.ts
+++ b/packages/contract-wrappers/test/exchange_wrapper_test.ts
@@ -80,7 +80,7 @@ describe('ExchangeWrapper', () => {
anotherSignedOrder = await fillScenarios.createFillableSignedOrderAsync(
makerAssetData,
takerAssetData,
- anotherMakerAddress,
+ makerAddress,
takerAddress,
fillableAmount,
);
@@ -244,7 +244,7 @@ describe('ExchangeWrapper', () => {
await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
});
});
- describe.skip('#batchCancelOrdersAsync', () => {
+ describe('#batchCancelOrdersAsync', () => {
it('should cancel a batch of valid orders', async () => {
const orders = [signedOrder, anotherSignedOrder];
txHash = await contractWrappers.exchange.batchCancelOrdersAsync(orders);
@@ -252,13 +252,15 @@ describe('ExchangeWrapper', () => {
});
});
describe('#cancelOrdersUpTo/getOrderEpochAsync', () => {
- it.skip('should cancel orders up to target order epoch', async () => {
+ it('should cancel orders up to target order epoch', async () => {
const targetOrderEpoch = new BigNumber(42);
- txHash = await contractWrappers.exchange.cancelOrdersUpToAsync(targetOrderEpoch, takerAddress);
+ txHash = await contractWrappers.exchange.cancelOrdersUpToAsync(targetOrderEpoch, makerAddress);
await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
- const senderAddress = constants.NULL_ADDRESS;
- const orderEpoch = await contractWrappers.exchange.getOrderEpochAsync(makerAddress, senderAddress);
- expect(orderEpoch).to.be.bignumber.equal(targetOrderEpoch);
+ const orderEpoch = await contractWrappers.exchange.getOrderEpochAsync(
+ makerAddress,
+ constants.NULL_ADDRESS,
+ );
+ expect(orderEpoch).to.be.bignumber.equal(targetOrderEpoch.plus(1));
});
});
});