Revert "Use different lodash import syntax which allows to include only used functions"
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user