diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-06 06:40:22 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-06 06:40:22 +0800 |
commit | 8ebc724379ad9047ad3f546985ed5a4c013ac7dd (patch) | |
tree | a7b1dc0534877e8ee8542ce19efb29d3f165db7c /test | |
parent | df904f80e323376ff8dd6aabca445fa9f0be9c1b (diff) | |
download | dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.gz dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.tar.zst dexon-sol-tools-8ebc724379ad9047ad3f546985ed5a4c013ac7dd.zip |
Add lifecycle methods
Diffstat (limited to 'test')
-rw-r--r-- | test/0x.js_test.ts | 8 |
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]; |