diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-09 04:09:07 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | 942867179c05e901450a7a08872dd523122a2f81 (patch) | |
tree | 511edac66bad43851c80ba2550d3716bfac0f8ef /packages/contracts/test/exchange/core.ts | |
parent | 6b897f6fd2b3bf894662f11f67ebb555f20c2464 (diff) | |
download | dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.gz dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.zst dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.zip |
Run prettier
Diffstat (limited to 'packages/contracts/test/exchange/core.ts')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 0a9b7b2c9..d8d83711e 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -393,7 +393,7 @@ describe('Exchange', () => { takerTokenFillAmount: signedOrder.takerTokenAmount, }); const log = res.logs[0] as LogWithDecodedArgs<LogFillContractEventArgs>; - expect(log.args.filledTakerTokenAmount).to.be.bignumber.equal( + expect(log.args.takerTokenFilledAmount).to.be.bignumber.equal( signedOrder.takerTokenAmount.minus(takerTokenFillAmount), ); const newBalances = await dmyBalances.getAsync(); @@ -543,11 +543,7 @@ describe('Exchange', () => { makerTokenAmount: ZeroEx.toBaseUnitAmount(new BigNumber(100000), 18), }); - return expect( - exWrapper.fillOrderAsync(signedOrder, taker, { - shouldThrowOnInsufficientBalanceOrAllowance: true, - }), - ).to.be.rejectedWith(constants.REVERT); + return expect(exWrapper.fillOrderAsync(signedOrder, taker)).to.be.rejectedWith(constants.REVERT); }); it('should not change balances if taker balances are too low to fill order and \ @@ -675,11 +671,7 @@ describe('Exchange', () => { takerTokenAddress: maliciousToken.address, }); - return expect( - exWrapper.fillOrderAsync(signedOrder, taker, { - shouldThrowOnInsufficientBalanceOrAllowance: false, - }), - ).to.be.rejectedWith(constants.REVERT); + return expect(exWrapper.fillOrderAsync(signedOrder, taker)).to.be.rejectedWith(constants.REVERT); }); it('should not change balances if an order is expired', async () => { |