diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-23 04:50:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 04:50:16 +0800 |
commit | e5785532ed1f4cada70db7815a44ffdd005077f5 (patch) | |
tree | da804f637b18b8589be98d81b34b26cbfc2b9032 /test/schema_test.ts | |
parent | bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd (diff) | |
parent | 49e43c98767666fcf457edfe2f3cbe098d12b6a5 (diff) | |
download | dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.gz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.bz2 dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.lz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.xz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.zst dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.zip |
Merge branch 'master' into fill-order-amuont
Diffstat (limited to 'test/schema_test.ts')
-rw-r--r-- | test/schema_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/schema_test.ts b/test/schema_test.ts index 72b08581a..b251a68f9 100644 --- a/test/schema_test.ts +++ b/test/schema_test.ts @@ -1,5 +1,5 @@ import 'mocha'; -import forEach = require('lodash/forEach'); +import * as _ from 'lodash'; import * as chai from 'chai'; import * as BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); @@ -19,7 +19,7 @@ const expect = chai.expect; describe('Schema', () => { const validator = new SchemaValidator(); const validateAgainstSchema = (testCases: any[], schema: any, shouldFail = false) => { - forEach(testCases, (testCase: any) => { + _.forEach(testCases, (testCase: any) => { if (shouldFail) { expect(validator.validate(testCase, schema).errors).to.be.lengthOf.at.least(1); } else { @@ -285,7 +285,7 @@ describe('Schema', () => { '00.00': '0', '.3': '0.3', }; - forEach(testCases, (serialized: string, input: string) => { + _.forEach(testCases, (serialized: string, input: string) => { expect(JSON.parse(JSON.stringify(new BigNumber(input)))).to.be.equal(serialized); }); }); |