diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:53:42 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:53:42 +0800 |
commit | eefc8ca7ecb0543da3dad54ad1146eacb5a446f6 (patch) | |
tree | 3afa99c0b034cd4527ef33cf034d1c432fb9d6ce /test/0x.js_test.ts | |
parent | 007c57ec4049ce4c929cbf97ca000a375570aeb4 (diff) | |
download | dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar.gz dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar.bz2 dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar.lz dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar.xz dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.tar.zst dexon-sol-tools-eefc8ca7ecb0543da3dad54ad1146eacb5a446f6.zip |
add assertions that contractInstances are not undefined before provider update
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r-- | test/0x.js_test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 21e4b5a3b..041c5b433 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -20,6 +20,8 @@ describe('ZeroEx library', () => { // Instantiate the contract instances with the current provider await (zeroEx.exchange as any).instantiateExchangeContractIfDoesntExistAsync(); await (zeroEx.tokenRegistry as any).instantiateTokenRegistryContractIfDoesntExistAsync(); + expect((zeroEx.exchange as any).exchangeContractIfExists).to.not.be.an('undefined'); + expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.not.be.an('undefined'); const newProvider = web3Factory.getRpcProvider(); // Add property to newProvider so that we can differentiate it from old provider |