aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 07:07:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 07:38:38 +0800
commit0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba (patch)
tree300573ade30c90ba4df8459205789dd47ad5c9e7 /packages/0x.js
parente6887dc9d4b129eee062c9c2f80a970548ee7650 (diff)
downloaddexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar.gz
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar.bz2
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar.lz
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar.xz
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.tar.zst
dexon-sol-tools-0500602ac3e8d4ea3c54d1cf2d4dcc2b0bcf80ba.zip
Fix tests
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/exchange_wrapper_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/0x.js/test/exchange_wrapper_test.ts b/packages/0x.js/test/exchange_wrapper_test.ts
index 3e2160330..d862c347d 100644
--- a/packages/0x.js/test/exchange_wrapper_test.ts
+++ b/packages/0x.js/test/exchange_wrapper_test.ts
@@ -184,6 +184,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.fillOrKillOrderAsync(signedOrder, emptyFillableAmount, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -363,6 +364,7 @@ describe('ExchangeWrapper', () => {
return expect(zeroEx.exchange.batchFillOrdersAsync(
orderFillBatch, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -420,6 +422,7 @@ describe('ExchangeWrapper', () => {
return expect(zeroEx.exchange.fillOrdersUpToAsync(
signedOrders, emptyFillUpToAmount, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderFillAmountZero);
});
});
@@ -468,6 +471,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.cancelOrderAsync(signedOrder, emptyCancelTakerTokenAmount, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderCancelAmountZero);
});
});
@@ -543,6 +547,7 @@ describe('ExchangeWrapper', () => {
it('should not validate when orderTransactionOptions specify not to validate', async () => {
return expect(zeroEx.exchange.batchCancelOrdersAsync(cancelBatch, {
shouldValidate: false,
+ gasLimit: 200000, // If we don't pass this gas estimation will fail
})).to.not.be.rejectedWith(ExchangeContractErrs.OrderCancelAmountZero);
});
});