aboutsummaryrefslogtreecommitdiffstats
path: root/packages/metacoin/test/metacoin_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 13:03:22 +0800
committerGitHub <noreply@github.com>2018-06-12 13:03:22 +0800
commit71934f05a8758a180d85797156eb254360d9e5ce (patch)
treedc774b4a4a6f260c75365f5c9f00a7cd3db21689 /packages/metacoin/test/metacoin_test.ts
parent746b1d0c4d0c5a6442373655877b268d365f9a0a (diff)
parent534a0d68362abb5a7e643852015c3496bead705c (diff)
downloaddexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.gz
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.bz2
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.lz
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.xz
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.tar.zst
dexon-sol-tools-71934f05a8758a180d85797156eb254360d9e5ce.zip
Merge pull request #687 from 0xProject/feature/metacoin-docs
Add profiler and geth tests to metacoin
Diffstat (limited to 'packages/metacoin/test/metacoin_test.ts')
-rw-r--r--packages/metacoin/test/metacoin_test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts
index 09e0d6b36..78de57a2a 100644
--- a/packages/metacoin/test/metacoin_test.ts
+++ b/packages/metacoin/test/metacoin_test.ts
@@ -10,6 +10,8 @@ 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';
const artifact: ContractArtifact = MetacoinArtifact as any;
@@ -44,6 +46,7 @@ describe('Metacoin', () => {
const amount = INITIAL_BALANCE.div(2);
const oldBalance = await metacoin.balances.callAsync(ZERO_ADDRESS);
expect(oldBalance).to.be.bignumber.equal(0);
+ // profiler.start();
const txHash = await metacoin.transfer1.sendTransactionAsync(
{
to: ZERO_ADDRESS,
@@ -51,6 +54,7 @@ describe('Metacoin', () => {
},
{ from: devConstants.TESTRPC_FIRST_ADDRESS },
);
+ // profiler.stop();
const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const transferLogs = txReceipt.logs[0] as LogWithDecodedArgs<TransferContractEventArgs>;
expect(transferLogs.args).to.be.deep.equal({