diff options
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 45da44f54..53032efd6 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -386,7 +386,7 @@ describe('ExchangeWrapper', () => { }); }); }); - describe('#batchFillOrderAsync', () => { + describe('#batchFillOrdersAsync', () => { let signedOrder: SignedOrder; let signedOrderHashHex: string; let anotherSignedOrder: SignedOrder; @@ -414,10 +414,10 @@ describe('ExchangeWrapper', () => { }); describe('successful batch fills', () => { it('should no-op for an empty batch', async () => { - await zeroEx.exchange.batchFillOrderAsync([], shouldCheckTransfer, takerAddress); + await zeroEx.exchange.batchFillOrdersAsync([], shouldCheckTransfer, takerAddress); }); it('should successfully fill multiple orders', async () => { - await zeroEx.exchange.batchFillOrderAsync(orderFillBatch, shouldCheckTransfer, takerAddress); + await zeroEx.exchange.batchFillOrdersAsync(orderFillBatch, shouldCheckTransfer, takerAddress); const filledAmount = await zeroEx.exchange.getFilledTakerAmountAsync( signedOrderHashHex, exchangeContractAddress, ); @@ -531,7 +531,7 @@ describe('ExchangeWrapper', () => { }); }); }); - describe('#batchCancelOrderAsync', () => { + describe('#batchCancelOrdersAsync', () => { let anotherSignedOrder: SignedOrder; let anotherOrderHashHex: string; let cancelBatch: OrderCancellationRequest[]; @@ -556,7 +556,7 @@ describe('ExchangeWrapper', () => { const signedOrderWithDifferentMaker = await fillScenarios.createFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, takerAddress, takerAddress, fillableAmount, ); - return expect(zeroEx.exchange.batchCancelOrderAsync([ + return expect(zeroEx.exchange.batchCancelOrdersAsync([ cancelBatch[0], { order: signedOrderWithDifferentMaker, @@ -567,7 +567,7 @@ describe('ExchangeWrapper', () => { }); describe('successful batch cancels', () => { it('should cancel a batch of orders', async () => { - await zeroEx.exchange.batchCancelOrderAsync(cancelBatch); + await zeroEx.exchange.batchCancelOrdersAsync(cancelBatch); const cancelledAmount = await zeroEx.exchange.getCanceledTakerAmountAsync( orderHashHex, exchangeContractAddress, ); @@ -603,19 +603,19 @@ describe('ExchangeWrapper', () => { orderHash = zeroEx.getOrderHashHex(signedOrder); }); describe('#getUnavailableTakerAmountAsync', () => { - it ('should throw if passed an invalid orderHash', async () => { + it('should throw if passed an invalid orderHash', async () => { const invalidOrderHashHex = '0x123'; return expect(zeroEx.exchange.getUnavailableTakerAmountAsync( invalidOrderHashHex, exchangeContractAddress, )).to.be.rejected(); }); - it ('should return zero if passed a valid but non-existent orderHash', async () => { + it('should return zero if passed a valid but non-existent orderHash', async () => { const unavailableValueT = await zeroEx.exchange.getUnavailableTakerAmountAsync( NON_EXISTENT_ORDER_HASH, exchangeContractAddress, ); expect(unavailableValueT).to.be.bignumber.equal(0); }); - it ('should return the unavailableValueT for a valid and partially filled orderHash', async () => { + it('should return the unavailableValueT for a valid and partially filled orderHash', async () => { const unavailableValueT = await zeroEx.exchange.getUnavailableTakerAmountAsync( orderHash, exchangeContractAddress, ); @@ -623,19 +623,19 @@ describe('ExchangeWrapper', () => { }); }); describe('#getFilledTakerAmountAsync', () => { - it ('should throw if passed an invalid orderHash', async () => { + it('should throw if passed an invalid orderHash', async () => { const invalidOrderHashHex = '0x123'; return expect(zeroEx.exchange.getFilledTakerAmountAsync( invalidOrderHashHex, exchangeContractAddress, )).to.be.rejected(); }); - it ('should return zero if passed a valid but non-existent orderHash', async () => { + it('should return zero if passed a valid but non-existent orderHash', async () => { const filledValueT = await zeroEx.exchange.getFilledTakerAmountAsync( NON_EXISTENT_ORDER_HASH, exchangeContractAddress, ); expect(filledValueT).to.be.bignumber.equal(0); }); - it ('should return the filledValueT for a valid and partially filled orderHash', async () => { + it('should return the filledValueT for a valid and partially filled orderHash', async () => { const filledValueT = await zeroEx.exchange.getFilledTakerAmountAsync( orderHash, exchangeContractAddress, ); @@ -643,25 +643,25 @@ describe('ExchangeWrapper', () => { }); }); describe('#getCanceledTakerAmountAsync', () => { - it ('should throw if passed an invalid orderHash', async () => { + it('should throw if passed an invalid orderHash', async () => { const invalidOrderHashHex = '0x123'; return expect(zeroEx.exchange.getCanceledTakerAmountAsync( invalidOrderHashHex, exchangeContractAddress, )).to.be.rejected(); }); - it ('should return zero if passed a valid but non-existent orderHash', async () => { + it('should return zero if passed a valid but non-existent orderHash', async () => { const cancelledValueT = await zeroEx.exchange.getCanceledTakerAmountAsync( NON_EXISTENT_ORDER_HASH, exchangeContractAddress, ); expect(cancelledValueT).to.be.bignumber.equal(0); }); - it ('should return the cancelledValueT for a valid and partially filled orderHash', async () => { + it('should return the cancelledValueT for a valid and partially filled orderHash', async () => { const cancelledValueT = await zeroEx.exchange.getCanceledTakerAmountAsync( orderHash, exchangeContractAddress, ); expect(cancelledValueT).to.be.bignumber.equal(0); }); - it ('should return the cancelledValueT for a valid and cancelled orderHash', async () => { + it('should return the cancelledValueT for a valid and cancelled orderHash', async () => { const cancelAmount = fillableAmount.minus(partialFillAmount); await zeroEx.exchange.cancelOrderAsync(signedOrder, cancelAmount); const cancelledValueT = await zeroEx.exchange.getCanceledTakerAmountAsync( |