diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:03:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:03:14 +0800 |
commit | 24454938e51e40ae74809f15bd1f612c69c218ec (patch) | |
tree | 706a1a738d3e0a172c62343c0dfb5bad39163d9f /packages/0x.js/test/assert_test.ts | |
parent | 89a72ebf0dbff606d511ae51bfee7ffc0a5df18f (diff) | |
download | dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.gz dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.bz2 dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.lz dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.xz dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.zst dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.zip |
Move away from using web3 directly in 0x.js tests
Diffstat (limited to 'packages/0x.js/test/assert_test.ts')
-rw-r--r-- | packages/0x.js/test/assert_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/test/assert_test.ts b/packages/0x.js/test/assert_test.ts index 4f3894a59..b08f3e23b 100644 --- a/packages/0x.js/test/assert_test.ts +++ b/packages/0x.js/test/assert_test.ts @@ -6,7 +6,7 @@ import { ZeroEx } from '../src'; import { assert } from '../src/utils/assert'; import { constants } from './utils/constants'; -import { web3 } from './utils/web3_wrapper'; +import { provider } from './utils/web3_wrapper'; const expect = chai.expect; @@ -14,7 +14,7 @@ describe('Assertion library', () => { const config = { networkId: constants.TESTRPC_NETWORK_ID, }; - const zeroEx = new ZeroEx(web3.currentProvider, config); + const zeroEx = new ZeroEx(provider, config); describe('#isSenderAddressHexAsync', () => { it('throws when address is invalid', async () => { const address = '0xdeadbeef'; |