Use different lodash import syntax which allows to include only used functions

This commit is contained in:
Leonid Logvinov
2017-06-21 13:56:14 +02:00
parent 096d3bdb26
commit 40a7be0690
16 changed files with 94 additions and 76 deletions

View File

@@ -1,4 +1,4 @@
import * as _ from 'lodash';
import each from 'lodash/each';
import 'mocha';
import * as chai from 'chai';
import {chaiSetup} from './utils/chai_setup';
@@ -32,7 +32,7 @@ describe('TokenRegistryWrapper', () => {
expect(tokens).to.have.lengthOf(TOKEN_REGISTRY_SIZE_AFTER_MIGRATION);
const schemaValidator = new SchemaValidator();
_.each(tokens, token => {
each(tokens, token => {
const validationResult = schemaValidator.validate(token, tokenSchema);
expect(validationResult.errors).to.have.lengthOf(0);
});