diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-21 19:56:14 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-21 19:56:14 +0800 |
commit | 40a7be0690c81d2e42543aa075ef8da6606e7b7e (patch) | |
tree | 73231f3671133364b53d55074f27e03bd61a1d38 /test/token_registry_wrapper_test.ts | |
parent | 096d3bdb26921cb3e7d05e65dc286ddf49f98a8a (diff) | |
download | dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.gz dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.zst dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.zip |
Use different lodash import syntax which allows to include only used functions
Diffstat (limited to 'test/token_registry_wrapper_test.ts')
-rw-r--r-- | test/token_registry_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts index da436161c..74a02aa40 100644 --- a/test/token_registry_wrapper_test.ts +++ b/test/token_registry_wrapper_test.ts @@ -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); }); |