diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-02 16:10:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-02 17:35:03 +0800 |
commit | b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5 (patch) | |
tree | 98458fcb9b7e884d7857c5e0f1ad11c2e8d4d0e6 /packages/metacoin/test/utils/coverage.ts | |
parent | b090b7b1f26e7c6af9aa9f244bb0009bc5050127 (diff) | |
download | dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar.gz dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar.bz2 dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar.lz dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar.xz dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.tar.zst dexon-sol-tools-b2d6ac8dba9dae92e2850fd39f0f7f3f22900cc5.zip |
move all configs to a config file
Diffstat (limited to 'packages/metacoin/test/utils/coverage.ts')
-rw-r--r-- | packages/metacoin/test/utils/coverage.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/metacoin/test/utils/coverage.ts b/packages/metacoin/test/utils/coverage.ts index 5115dec0e..6b249384f 100644 --- a/packages/metacoin/test/utils/coverage.ts +++ b/packages/metacoin/test/utils/coverage.ts @@ -1,7 +1,8 @@ +import { devConstants } from '@0xproject/dev-utils'; import { CoverageSubprovider } from '@0xproject/sol-cov'; import * as _ from 'lodash'; -import { devConstants } from '@0xproject/dev-utils'; +import { config } from './config'; let coverageSubprovider: CoverageSubprovider; @@ -13,10 +14,7 @@ export const coverage = { return coverageSubprovider; }, _getCoverageSubprovider(): CoverageSubprovider { - const artifactsPath = 'artifacts'; - const contractsPath = 'contracts'; - const networkId = 50; const defaultFromAddress = devConstants.TESTRPC_FIRST_ADDRESS; - return new CoverageSubprovider(artifactsPath, contractsPath, networkId, defaultFromAddress); + return new CoverageSubprovider(config.artifactsDir, config.contractsDir, config.networkId, defaultFromAddress); }, }; |