diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-12 00:46:12 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-12 00:46:12 +0800 |
commit | 3824ea9079f3034fb34750c8b80125462f42c79c (patch) | |
tree | 5b8b9aa5a2b6ad026e168f09130c17cde0fcdd9d /packages/0x.js/test | |
parent | 5e22ce05c5ce8416538452c6b582f412330712f3 (diff) | |
download | dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.gz dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.bz2 dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.lz dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.xz dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.zst dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.zip |
Remove TokenRegistry from 0x.js
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index 425fc6380..815f94de1 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -28,9 +28,7 @@ describe('ZeroEx library', () => { it('overrides provider in nested web3s and invalidates contractInstances', async () => { // Instantiate the contract instances with the current provider await (zeroEx.exchange as any)._getExchangeContractAsync(); - await (zeroEx.tokenRegistry as any)._getTokenRegistryContractAsync(); expect((zeroEx.exchange as any)._exchangeContractIfExists).to.not.be.undefined(); - expect((zeroEx.tokenRegistry as any)._tokenRegistryContractIfExists).to.not.be.undefined(); // Add property to newProvider so that we can differentiate it from old provider (provider as any).zeroExTestId = 1; @@ -38,15 +36,12 @@ describe('ZeroEx library', () => { // Check that contractInstances with old provider are removed after provider update expect((zeroEx.exchange as any)._exchangeContractIfExists).to.be.undefined(); - expect((zeroEx.tokenRegistry as any)._tokenRegistryContractIfExists).to.be.undefined(); // Check that all nested zeroExContract/web3Wrapper instances return the updated provider const nestedWeb3WrapperProvider = ((zeroEx as any)._contractWrappers as ContractWrappers).getProvider(); expect((nestedWeb3WrapperProvider as any).zeroExTestId).to.be.a('number'); const exchangeWeb3WrapperProvider = (zeroEx.exchange as any)._web3Wrapper.getProvider(); expect(exchangeWeb3WrapperProvider.zeroExTestId).to.be.a('number'); - const tokenRegistryWeb3WrapperProvider = (zeroEx.tokenRegistry as any)._web3Wrapper.getProvider(); - expect(tokenRegistryWeb3WrapperProvider.zeroExTestId).to.be.a('number'); }); }); describe('#isValidSignature', () => { |