aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-02-09 04:09:07 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:16 +0800
commit942867179c05e901450a7a08872dd523122a2f81 (patch)
tree511edac66bad43851c80ba2550d3716bfac0f8ef /packages/contracts/test
parent6b897f6fd2b3bf894662f11f67ebb555f20c2464 (diff)
downloaddexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.gz
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.bz2
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.lz
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.xz
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.tar.zst
dexon-sol-tools-942867179c05e901450a7a08872dd523122a2f81.zip
Run prettier
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/exchange/core.ts14
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 () => {