diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:19:31 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:19:31 +0800 |
commit | a9db0e8ebe1360cf521302691998ef1f98e2dc51 (patch) | |
tree | 683ae243e2690ade19833d4986192d8a6e760144 /packages/contracts | |
parent | a0791455e11022d16dbffba9b7080010a05d6522 (diff) | |
download | dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.gz dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.bz2 dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.lz dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.xz dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.zst dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.zip |
Properly and consistently parse ENV vars
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/test/global_hooks.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/global_hooks.ts b/packages/contracts/test/global_hooks.ts index 0440c871d..089521d94 100644 --- a/packages/contracts/test/global_hooks.ts +++ b/packages/contracts/test/global_hooks.ts @@ -1,7 +1,7 @@ -import { coverage } from '@0xproject/dev-utils'; +import { coverage, env, EnvVars } from '@0xproject/dev-utils'; after('generate coverage report', async () => { - if (process.env.SOLIDITY_COVERAGE) { + if (env.parseBoolean(EnvVars.SolidityCoverage)) { const coverageSubprovider = coverage.getCoverageSubproviderSingleton(); await coverageSubprovider.writeCoverageAsync(); } |