aboutsummaryrefslogtreecommitdiffstats
path: root/test/0x.js_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-21 19:56:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-21 19:56:14 +0800
commit40a7be0690c81d2e42543aa075ef8da6606e7b7e (patch)
tree73231f3671133364b53d55074f27e03bd61a1d38 /test/0x.js_test.ts
parent096d3bdb26921cb3e7d05e65dc286ddf49f98a8a (diff)
downloaddexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.gz
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.bz2
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.lz
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.xz
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.zst
dexon-sol-tools-40a7be0690c81d2e42543aa075ef8da6606e7b7e.zip
Use different lodash import syntax which allows to include only used functions
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r--test/0x.js_test.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index 9ec0a0c8e..b8e387f04 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -1,4 +1,5 @@
-import * as _ from 'lodash';
+import each from 'lodash/each';
+import assign from 'lodash/assign';
import * as chai from 'chai';
import {chaiSetup} from './utils/chai_setup';
import 'mocha';
@@ -67,7 +68,7 @@ describe('ZeroEx library', () => {
).to.become(false);
});
it('should return false if the signature doesn\'t pertain to the dataHex & address', async () => {
- const wrongSignature = _.assign({}, signature, {v: 28});
+ const wrongSignature = assign({}, signature, {v: 28});
expect(ZeroEx.isValidSignature(dataHex, wrongSignature, address)).to.be.false();
return expect(
(zeroEx.exchange as any)._isValidSignatureUsingContractCallAsync(dataHex, wrongSignature, address),
@@ -144,7 +145,7 @@ describe('ZeroEx library', () => {
let stubs: Sinon.SinonStub[] = [];
afterEach(() => {
// clean up any stubs after the test has completed
- _.each(stubs, s => s.restore());
+ each(stubs, s => s.restore());
stubs = [];
});
it('calculates the order hash', async () => {
@@ -171,7 +172,7 @@ describe('ZeroEx library', () => {
});
afterEach(() => {
// clean up any stubs after the test has completed
- _.each(stubs, s => s.restore());
+ each(stubs, s => s.restore());
stubs = [];
});
it ('Should return the correct ECSignature on TestPRC nodeVersion', async () => {