aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper/test/web3_wrapper_test.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-06 06:12:09 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-06-07 03:40:31 +0800
commit63caddea62453863de84a4b53e14fe3e61d3008f (patch)
treef9fa506486272d49e708b44e9f65dc86c196aeea /packages/web3-wrapper/test/web3_wrapper_test.ts
parent36b01fbdcfcda93d185e018e31a919c36f2848ac (diff)
downloaddexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.gz
dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.zst
dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.zip
Small fixes and cleanup
Diffstat (limited to 'packages/web3-wrapper/test/web3_wrapper_test.ts')
-rw-r--r--packages/web3-wrapper/test/web3_wrapper_test.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/web3-wrapper/test/web3_wrapper_test.ts b/packages/web3-wrapper/test/web3_wrapper_test.ts
index 1843bcf2c..326efe654 100644
--- a/packages/web3-wrapper/test/web3_wrapper_test.ts
+++ b/packages/web3-wrapper/test/web3_wrapper_test.ts
@@ -2,7 +2,6 @@ import * as chai from 'chai';
import * as Ganache from 'ganache-core';
import 'make-promises-safe';
import 'mocha';
-import * as Web3 from 'web3';
import { Web3Wrapper } from '../src';
@@ -38,22 +37,4 @@ describe('Web3Wrapper tests', () => {
expect(networkId).to.be.equal(NETWORK_ID);
});
});
- describe('mining functions', () => {
- it('starts and stops the miner', async () => {
- // Note: depending on our provider, the miner may or may not already
- // be mining. To account for both conditions, we have what might
- // look like too many stops and starts here, but it is necessary.
- await web3Wrapper.minerStopAsync();
- let isMining = await web3Wrapper.isMiningAsync();
- expect(isMining).to.be.false();
- await web3Wrapper.minerStartAsync(1);
- isMining = await web3Wrapper.isMiningAsync();
- expect(isMining).to.be.true();
- isMining = await web3Wrapper.isMiningAsync();
- expect(isMining).to.be.true();
- await web3Wrapper.minerStopAsync();
- isMining = await web3Wrapper.isMiningAsync();
- expect(isMining).to.be.false();
- });
- });
});