diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-22 22:21:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 22:21:56 +0800 |
commit | 94cab6f694027d47971d661bca33beac42f4ade1 (patch) | |
tree | c411ec567878a8178aa64313bd9b76dfcb455fc7 /test/0x.js_test.ts | |
parent | 25a9ba90f508e0d147c060f60a9e3683e07d45e4 (diff) | |
download | dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.gz dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.tar.zst dexon-0x-contracts-94cab6f694027d47971d661bca33beac42f4ade1.zip |
Revert "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.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index e50a6018c..9ec0a0c8e 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -1,5 +1,4 @@ -import each = require('lodash/each'); -import assign = require('lodash/assign'); +import * as _ from 'lodash'; import * as chai from 'chai'; import {chaiSetup} from './utils/chai_setup'; import 'mocha'; @@ -68,7 +67,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), @@ -145,7 +144,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 () => { @@ -172,7 +171,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 () => { |