aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-22 05:43:49 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:36 +0800
commitcbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9 (patch)
treefa88db65ba0e5d7e62e2650d07ae984da18816a3 /packages/0x.js
parent92efc6584700d34db734396e76626003c1bba37d (diff)
downloaddexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar.gz
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar.bz2
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar.lz
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar.xz
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.tar.zst
dexon-sol-tools-cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9.zip
Fix CI tests
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/0x.js_test.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts
index d56acc38b..6e7b53b6f 100644
--- a/packages/0x.js/test/0x.js_test.ts
+++ b/packages/0x.js/test/0x.js_test.ts
@@ -16,7 +16,10 @@ const expect = chai.expect;
describe('ZeroEx library', () => {
const web3 = web3Factory.create();
- const zeroEx = new ZeroEx(web3.currentProvider);
+ const networkId = 50;
+ const zeroEx = new ZeroEx(web3.currentProvider, {
+ networkId,
+ });
describe('#setProvider', () => {
it('overrides provider in nested web3s and invalidates contractInstances', async () => {
// Instantiate the contract instances with the current provider
@@ -234,6 +237,7 @@ describe('ZeroEx library', () => {
it('allows to specify exchange contract address', async () => {
const config = {
exchangeContractAddress: ZeroEx.NULL_ADDRESS,
+ networkId,
};
const zeroExWithWrongExchangeAddress = new ZeroEx(web3.currentProvider, config);
return expect(zeroExWithWrongExchangeAddress.exchange.getContractAddressAsync())
@@ -242,6 +246,7 @@ describe('ZeroEx library', () => {
it('allows to specify ether token contract address', async () => {
const config = {
etherTokenContractAddress: ZeroEx.NULL_ADDRESS,
+ networkId,
};
const zeroExWithWrongEtherTokenAddress = new ZeroEx(web3.currentProvider, config);
return expect(zeroExWithWrongEtherTokenAddress.etherToken.getContractAddressAsync())
@@ -250,6 +255,7 @@ describe('ZeroEx library', () => {
it('allows to specify token registry token contract address', async () => {
const config = {
tokenRegistryContractAddress: ZeroEx.NULL_ADDRESS,
+ networkId,
};
const zeroExWithWrongTokenRegistryAddress = new ZeroEx(web3.currentProvider, config);
return expect(zeroExWithWrongTokenRegistryAddress.tokenRegistry.getContractAddressAsync())