aboutsummaryrefslogtreecommitdiffstats
path: root/test/0x.js_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 20:26:07 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 20:26:07 +0800
commit3522f94ff6cde1aad83299def7308025da9432d5 (patch)
tree8c7b600fb2ead36e828d6acfbd0d47e3e7fb78d9 /test/0x.js_test.ts
parentad14c307cec8e0e7621b47e9e1ecb2652985190f (diff)
downloaddexon-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.ts8
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();