aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-10-19 21:31:06 +0800
committerGitHub <noreply@github.com>2017-10-19 21:31:06 +0800
commitddec91ba520f231b1a9957acd2bd5ac1b398e6c7 (patch)
tree57202aa449fc148d10503629e75e2d80446655fd /test
parent8931f2e7364b9087c1db01b77eafd827d2c8bbbc (diff)
parent0329b36430456780ac2fa26749ce9bff730ba121 (diff)
downloaddexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.gz
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.bz2
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.lz
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.xz
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.tar.zst
dexon-sol-tools-ddec91ba520f231b1a9957acd2bd5ac1b398e6c7.zip
Merge pull request #195 from 0xProject/minification
Reduce final bundle size by 11% (82kB)
Diffstat (limited to 'test')
-rw-r--r--test/0x.js_test.ts2
-rw-r--r--test/exchange_wrapper_test.ts13
-rw-r--r--test/token_registry_wrapper_test.ts2
-rw-r--r--test/utils/order_factory.ts2
-rw-r--r--test/utils/token_utils.ts2
5 files changed, 12 insertions, 9 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index dd5dd19b1..0c1d1a68d 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -1,4 +1,4 @@
-import * as _ from 'lodash';
+import {_} from '../src/utils/lodash';
import * as chai from 'chai';
import {chaiSetup} from './utils/chai_setup';
import 'mocha';
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index f3f16643e..2cfab2d65 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -304,11 +304,11 @@ describe('ExchangeWrapper', () => {
orderFillBatch = [
{
signedOrder,
- takerTokenFillAmount: takerTokenFillAmount,
+ takerTokenFillAmount,
},
{
signedOrder: anotherSignedOrder,
- takerTokenFillAmount: takerTokenFillAmount,
+ takerTokenFillAmount,
},
];
});
@@ -655,7 +655,8 @@ describe('ExchangeWrapper', () => {
ExchangeEvents.LogFill, indexFilterValues, callback,
);
await zeroEx.exchange.fillOrderAsync(
- signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress,
+ signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance,
+ takerAddress,
);
})().catch(done);
});
@@ -691,7 +692,8 @@ describe('ExchangeWrapper', () => {
ExchangeEvents.LogFill, indexFilterValues, callback,
);
await zeroEx.exchange.fillOrderAsync(
- signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress,
+ signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance,
+ takerAddress,
);
})().catch(done);
});
@@ -705,7 +707,8 @@ describe('ExchangeWrapper', () => {
);
zeroEx.exchange.unsubscribe(subscriptionToken);
await zeroEx.exchange.fillOrderAsync(
- signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance, takerAddress,
+ signedOrder, takerTokenFillAmountInBaseUnits, shouldThrowOnInsufficientBalanceOrAllowance,
+ takerAddress,
);
done();
})().catch(done);
diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts
index 6b5dd517e..b415ec1c6 100644
--- a/test/token_registry_wrapper_test.ts
+++ b/test/token_registry_wrapper_test.ts
@@ -1,4 +1,4 @@
-import * as _ from 'lodash';
+import {_} from '../src/utils/lodash';
import 'mocha';
import * as chai from 'chai';
import {SchemaValidator, schemas} from '0x-json-schemas';
diff --git a/test/utils/order_factory.ts b/test/utils/order_factory.ts
index fc4adebd9..30a6f376a 100644
--- a/test/utils/order_factory.ts
+++ b/test/utils/order_factory.ts
@@ -1,4 +1,4 @@
-import * as _ from 'lodash';
+import {_} from '../../src/utils/lodash';
import * as BigNumber from 'bignumber.js';
import {ZeroEx, SignedOrder} from '../../src';
diff --git a/test/utils/token_utils.ts b/test/utils/token_utils.ts
index 51cb9411c..ab0682b32 100644
--- a/test/utils/token_utils.ts
+++ b/test/utils/token_utils.ts
@@ -1,4 +1,4 @@
-import * as _ from 'lodash';
+import {_} from '../../src/utils/lodash';
import {Token, InternalZeroExError} from '../../src/types';
const PROTOCOL_TOKEN_SYMBOL = 'ZRX';