aboutsummaryrefslogtreecommitdiffstats
path: root/packages/metacoin/test/metacoin_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 02:59:48 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 02:59:48 +0800
commit83ddaccf4a7c855ed726399cb587ec7e1abe28f4 (patch)
treee640cd2f761d9b0d739dbae0367fe412b549f88e /packages/metacoin/test/metacoin_test.ts
parente0c0584c593e3d948652c1cb58f39042c5b8f488 (diff)
downloaddexon-0x-contracts-83ddaccf4a7c855ed726399cb587ec7e1abe28f4.tar.gz
dexon-0x-contracts-83ddaccf4a7c855ed726399cb587ec7e1abe28f4.tar.zst
dexon-0x-contracts-83ddaccf4a7c855ed726399cb587ec7e1abe28f4.zip
Add profiler and geth tests to metacoin
Diffstat (limited to 'packages/metacoin/test/metacoin_test.ts')
-rw-r--r--packages/metacoin/test/metacoin_test.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts
index 09e0d6b36..6b21c1a22 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';
+import { profiler } from './utils/profiler';
import { provider, web3Wrapper } from './utils/web3_wrapper';
const artifact: ContractArtifact = MetacoinArtifact as any;
@@ -44,6 +45,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 +53,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({