diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-12 13:03:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-12 13:03:07 +0800 |
commit | 534a0d68362abb5a7e643852015c3496bead705c (patch) | |
tree | 02c5421e59dc6dea4e18dd41744a5c5fa9c49f9f /packages/metacoin/test | |
parent | 682f6d273c7ed4a53d02df0a33e07415836d5732 (diff) | |
download | dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar.gz dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar.bz2 dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar.lz dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar.xz dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.tar.zst dexon-sol-tools-534a0d68362abb5a7e643852015c3496bead705c.zip |
Fix typos
Diffstat (limited to 'packages/metacoin/test')
-rw-r--r-- | packages/metacoin/test/global_hooks.ts | 2 | ||||
-rw-r--r-- | packages/metacoin/test/metacoin_test.ts | 1 | ||||
-rw-r--r-- | packages/metacoin/test/utils/web3_wrapper.ts | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/packages/metacoin/test/global_hooks.ts b/packages/metacoin/test/global_hooks.ts index 4ab2ddc2f..7328531e4 100644 --- a/packages/metacoin/test/global_hooks.ts +++ b/packages/metacoin/test/global_hooks.ts @@ -3,7 +3,7 @@ import { env, EnvVars } from '@0xproject/dev-utils'; import { coverage } from './utils/coverage'; import { profiler } from './utils/profiler'; -after('generate coverage & profiler report', async () => { +after('generate coverage || profiler report', async () => { if (env.parseBoolean(EnvVars.SolidityCoverage)) { const coverageSubprovider = coverage.getCoverageSubproviderSingleton(); await coverageSubprovider.writeCoverageAsync(); diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts index 22e63eead..78de57a2a 100644 --- a/packages/metacoin/test/metacoin_test.ts +++ b/packages/metacoin/test/metacoin_test.ts @@ -10,6 +10,7 @@ import { MetacoinContract, TransferContractEventArgs } from '../src/contract_wra import { chaiSetup } from './utils/chai_setup'; import { config } from './utils/config'; +// Comment out the next line enable profiling // import { profiler } from './utils/profiler'; import { provider, web3Wrapper } from './utils/web3_wrapper'; diff --git a/packages/metacoin/test/utils/web3_wrapper.ts b/packages/metacoin/test/utils/web3_wrapper.ts index c09f8d2df..9bc3d05ac 100644 --- a/packages/metacoin/test/utils/web3_wrapper.ts +++ b/packages/metacoin/test/utils/web3_wrapper.ts @@ -1,6 +1,6 @@ import { env, EnvVars } from '@0xproject/dev-utils'; import { GanacheSubprovider, prependSubprovider } from '@0xproject/subproviders'; -import { logUtils } from '@0xproject/utils'; +import { logUtils, errorUtils } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as fs from 'fs'; import ProviderEngine = require('web3-provider-engine'); @@ -27,7 +27,7 @@ switch (process.env.TEST_PROVIDER) { testProvider = ProviderType.Geth; break; default: - throw new Error(`Unknown TEST_PROVIDER: ${process.env.TEST_PROVIDER}`); + throw errorUtils.spawnSwitchErr('TEST_PROVIDER', process.env.TEST_PROVIDER); } export const provider = new ProviderEngine(); |