Properly and consistently parse ENV vars

This commit is contained in:
Leonid Logvinov
2018-03-13 15:19:31 +01:00
parent a0791455e1
commit a9db0e8ebe
4 changed files with 9 additions and 8 deletions

View File

@@ -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();
}