diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:43:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:43:50 +0800 |
commit | a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6 (patch) | |
tree | 27bb9cbc2678b5342ce5064c4b57a70ebfbf2043 /test/0x.js_test.ts | |
parent | cb31b21d28c20a0153199e9388202301e1385bfe (diff) | |
download | dexon-0x-contracts-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.gz dexon-0x-contracts-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.zst dexon-0x-contracts-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.zip |
Make tokenRegistry contract instantiation lazy and clear it on provider update
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r-- | test/0x.js_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 1e76ae71a..4125b83fe 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -26,8 +26,9 @@ describe('ZeroEx library', () => { (newProvider as any).zeroExTestId = 1; zeroEx.setProvider(newProvider); - // Check that exchangeContract instance removed after provider update + // Check that contractInstances with old provider are removed after provider update expect((zeroEx.exchange as any).exchangeContractIfExists).to.be.an('undefined'); + expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.be.an('undefined'); // Check that all nested web3 instances return the updated provider const nestedWeb3WrapperProvider = (zeroEx as any).web3Wrapper.getCurrentProvider(); |