diff options
-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]; |