diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-11 20:59:30 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-11 20:59:30 +0800 |
commit | b146acc69e46d2565474bcb4d47bfa760fd26fad (patch) | |
tree | e6d4e200e55a59b6cbbf224121ca64d03261b11d /packages/0x.js/test/0x.js_test.ts | |
parent | 29dc22e208080fa8ff0871b98b530a2deb251a73 (diff) | |
download | dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar.gz dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar.bz2 dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar.lz dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar.xz dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.tar.zst dexon-sol-tools-b146acc69e46d2565474bcb4d47bfa760fd26fad.zip |
Simplify the tests
Diffstat (limited to 'packages/0x.js/test/0x.js_test.ts')
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index 5720f42ce..de5a6be58 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -42,10 +42,9 @@ describe('ZeroEx library', () => { expect((zeroEx.exchange as any)._exchangeContractIfExists).to.not.be.undefined(); expect((zeroEx.tokenRegistry as any)._tokenRegistryContractIfExists).to.not.be.undefined(); - const newProvider = provider; // Add property to newProvider so that we can differentiate it from old provider - (newProvider as any).zeroExTestId = 1; - zeroEx.setProvider(newProvider, constants.TESTRPC_NETWORK_ID); + (provider as any).zeroExTestId = 1; + zeroEx.setProvider(provider, constants.TESTRPC_NETWORK_ID); // Check that contractInstances with old provider are removed after provider update expect((zeroEx.exchange as any)._exchangeContractIfExists).to.be.undefined(); |