diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-27 00:01:54 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-27 00:01:54 +0800 |
commit | d5feb5fc792c54bcf4a3a029ddc404e95a5df166 (patch) | |
tree | 92cafe86182dd65063a8182a730c6ecea7c61253 /test/contract_wrapper_test.ts | |
parent | badd4a98e9f604b81cff1d6d52086b63d500bd64 (diff) | |
download | dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar.gz dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar.bz2 dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar.lz dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar.xz dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.tar.zst dexon-sol-tools-d5feb5fc792c54bcf4a3a029ddc404e95a5df166.zip |
rename BlockClean to BlockchainLifecycle and setupAsync to startAsync, restoreAsync to revertAsync
Diffstat (limited to 'test/contract_wrapper_test.ts')
-rw-r--r-- | test/contract_wrapper_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/contract_wrapper_test.ts b/test/contract_wrapper_test.ts index f332956ad..67dae3a4e 100644 --- a/test/contract_wrapper_test.ts +++ b/test/contract_wrapper_test.ts @@ -4,12 +4,12 @@ import chaiAsPromised = require('chai-as-promised'); import * as Web3 from 'web3'; import {web3Factory} from './utils/web3_factory'; import {ExchangeWrapper} from '../src/ts/contract_wrappers/exchange_wrapper'; -import {BlockchainClean} from './utils/blockchain_clean'; +import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; import {Web3Wrapper} from './../src/ts/web3_wrapper'; const expect = chai.expect; chai.use(chaiAsPromised); -const blockchainClean = new BlockchainClean(); +const blockchainLifecycle = new BlockchainLifecycle(); describe('ExchangeWrapper', () => { let web3Wrapper: Web3Wrapper; @@ -20,10 +20,10 @@ describe('ExchangeWrapper', () => { exchangeWrapper = new ExchangeWrapper(web3Wrapper); }); beforeEach(async () => { - await blockchainClean.setupAsync(); + await blockchainLifecycle.startAsync(); }); afterEach(async () => { - await blockchainClean.restoreAsync(); + await blockchainLifecycle.revertAsync(); }); describe('#isValidSignatureAsync', () => { // The Exchange smart contract `isValidSignature` method only validates orderHashes and assumes |