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/test/global_hooks.ts | |
parent | a0791455e11022d16dbffba9b7080010a05d6522 (diff) | |
download | dexon-0x-contracts-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.gz dexon-0x-contracts-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.zst dexon-0x-contracts-a9db0e8ebe1360cf521302691998ef1f98e2dc51.zip |
Properly and consistently parse ENV vars
Diffstat (limited to 'packages/contracts/test/global_hooks.ts')
-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(); } |