diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 20:26:07 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 20:26:07 +0800 |
commit | 3522f94ff6cde1aad83299def7308025da9432d5 (patch) | |
tree | 8c7b600fb2ead36e828d6acfbd0d47e3e7fb78d9 /test/0x.js_test.ts | |
parent | ad14c307cec8e0e7621b47e9e1ecb2652985190f (diff) | |
download | dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar.gz dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar.bz2 dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar.lz dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar.xz dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.tar.zst dexon-sol-tools-3522f94ff6cde1aad83299def7308025da9432d5.zip |
use .be.undefined instead of .be.an('undefined')
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r-- | test/0x.js_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index b404b27ba..5d23d7094 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -20,8 +20,8 @@ describe('ZeroEx library', () => { // 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.an('undefined'); - expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.not.be.an('undefined'); + expect((zeroEx.exchange as any).exchangeContractIfExists).to.not.be.undefined; + expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.not.be.undefined; const newProvider = web3Factory.getRpcProvider(); // Add property to newProvider so that we can differentiate it from old provider @@ -29,8 +29,8 @@ describe('ZeroEx library', () => { zeroEx.setProvider(newProvider); // 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'); + expect((zeroEx.exchange as any).exchangeContractIfExists).to.be.undefined; + expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.be.undefined; // Check that all nested web3 instances return the updated provider const nestedWeb3WrapperProvider = (zeroEx as any).web3Wrapper.getCurrentProvider(); |