diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-03 00:20:17 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-03 00:20:17 +0800 |
commit | 7cf60b589b280c578bcde4b9209e70d07c92c241 (patch) | |
tree | 373b7a9e1fba27e1d507347f1a879b943a385425 /test/exchange_wrapper_test.ts | |
parent | a52f834debc1727cee97c28f59e0973ba33bde7c (diff) | |
download | dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar.gz dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar.bz2 dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar.lz dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar.xz dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.tar.zst dexon-sol-tools-7cf60b589b280c578bcde4b9209e70d07c92c241.zip |
Address feedback
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index f445e1202..842d6de32 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -204,11 +204,11 @@ describe('ExchangeWrapper', () => { }); }); it('should throw when there a rounding error would have occurred', async () => { - const makerFillableAmount = new BigNumber(3); - const takerFillableAmount = new BigNumber(5); - const signedOrder = await fillScenarios.createAsymetricFillableSignedOrderAsync( + const makerAmount = new BigNumber(3); + const takerAmount = new BigNumber(5); + const signedOrder = await fillScenarios.createAsymmetricFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, - makerFillableAmount, takerFillableAmount, + makerAmount, takerAmount, ); const fillTakerAmountThatCausesRoundingError = new BigNumber(3); zeroEx.setTransactionSenderAccount(takerAddress); @@ -216,7 +216,7 @@ describe('ExchangeWrapper', () => { signedOrder, fillTakerAmountThatCausesRoundingError, shouldCheckTransfer, )).to.be.rejectedWith(ExchangeContractErrs.ORDER_FILL_ROUNDING_ERROR); }); - describe('should raise when not enough balance or allowance to pay fees', () => { + describe('should throw when not enough balance or allowance to pay fees', () => { const fillableAmount = new BigNumber(5); const makerFee = new BigNumber(2); const takerFee = new BigNumber(2); |