Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Add lifecycle methods
Browse files Browse the repository at this point in the history
  • Loading branch information
LogvinovLeon committed Sep 5, 2017
1 parent df904f8 commit 8ebc724
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/0x.js_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 8ebc724

Please sign in to comment.