aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/global_hooks.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-13 22:19:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-13 22:19:31 +0800
commita9db0e8ebe1360cf521302691998ef1f98e2dc51 (patch)
tree683ae243e2690ade19833d4986192d8a6e760144 /packages/contracts/test/global_hooks.ts
parenta0791455e11022d16dbffba9b7080010a05d6522 (diff)
downloaddexon-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/test/global_hooks.ts')
-rw-r--r--packages/contracts/test/global_hooks.ts4
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();
}