Fix lint errors

This commit is contained in:
Brandon Millman
2018-08-22 15:20:53 -07:00
parent bfabdf6010
commit 44ca6c4b71
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ export class ForwarderHelperImpl implements ForwarderHelper {
return rest;
});
const amounts = _.map(signedOrderWithAmounts, order => {
const { remainingFillAmount, ...rest } = order;
const { remainingFillAmount } = order;
return remainingFillAmount;
});
const compactAmounts = _.compact(amounts);

View File

@@ -97,7 +97,7 @@ describe('ForwarderHelperImpl', () => {
const forwarderHelper = new ForwarderHelperImpl(inputForwarderHelperConfig);
expect(() => {
// request for 6 makerAsset units, because we have exactly 6 available we should throw because there is a built in slippage buffer
const info = forwarderHelper.getMarketBuyOrdersInfo({
forwarderHelper.getMarketBuyOrdersInfo({
makerAssetFillAmount: new BigNumber(6),
});
}).to.throw(ForwarderHelperError.InsufficientMakerAssetLiquidity);
@@ -110,7 +110,7 @@ describe('ForwarderHelperImpl', () => {
const forwarderHelper = new ForwarderHelperImpl(inputForwarderHelperConfigNoFees);
expect(() => {
// request for 4 makerAsset units, we need fees but no fee orders exist, show we should throw
const info = forwarderHelper.getMarketBuyOrdersInfo({
forwarderHelper.getMarketBuyOrdersInfo({
makerAssetFillAmount: new BigNumber(250),
});
}).to.throw(ForwarderHelperError.InsufficientZrxLiquidity);