aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 06:40:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 06:40:22 +0800
commit8ebc724379ad9047ad3f546985ed5a4c013ac7dd (patch)
treea7b1dc0534877e8ee8542ce19efb29d3f165db7c
parentdf904f80e323376ff8dd6aabca445fa9f0be9c1b (diff)
downloaddexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.gz
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.bz2
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.lz
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.xz
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.zst
dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.zip
Add lifecycle methods
-rw-r--r--test/0x.js_test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index c545b3fbe..d9c08d2c5 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -8,7 +8,9 @@ import {ZeroEx, Order} from '../src';
import {constants} from './utils/constants';
import {TokenUtils} from './utils/token_utils';
import {web3Factory} from './utils/web3_factory';
+import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
+const blockchainLifecycle = new BlockchainLifecycle();
chaiSetup.configure();
const expect = chai.expect;
@@ -206,6 +208,12 @@ describe('ZeroEx library', () => {
});
});
describe('#awaitTransactionMinedAsync', () => {
+ beforeEach(async () => {
+ await blockchainLifecycle.startAsync();
+ });
+ afterEach(async () => {
+ await blockchainLifecycle.revertAsync();
+ });
it('return transaction receipt with decoded logs', async () => {
const availableAddresses = await zeroEx.getAvailableAddressesAsync();
const coinbase = availableAddresses[0];