Fix tests
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
				
			|||||||
import { BlockchainLifecycle, devConstants, web3Factory } from '@0xproject/dev-utils';
 | 
					import { BlockchainLifecycle, devConstants, web3Factory } from '@0xproject/dev-utils';
 | 
				
			||||||
import { BigNumber } from '@0xproject/utils';
 | 
					import { BigNumber } from '@0xproject/utils';
 | 
				
			||||||
 | 
					import { Web3Wrapper } from '@0xproject/web3-wrapper';
 | 
				
			||||||
import * as chai from 'chai';
 | 
					import * as chai from 'chai';
 | 
				
			||||||
import 'mocha';
 | 
					import 'mocha';
 | 
				
			||||||
import * as Web3 from 'web3';
 | 
					import * as Web3 from 'web3';
 | 
				
			||||||
@@ -105,7 +106,7 @@ describe('EtherTokenWrapper', () => {
 | 
				
			|||||||
        it('should throw if user has insufficient ETH balance for deposit', async () => {
 | 
					        it('should throw if user has insufficient ETH balance for deposit', async () => {
 | 
				
			||||||
            const preETHBalance = await (zeroEx as any)._web3Wrapper.getBalanceInWeiAsync(addressWithETH);
 | 
					            const preETHBalance = await (zeroEx as any)._web3Wrapper.getBalanceInWeiAsync(addressWithETH);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const extraETHBalance = Web3Wrapper.toWei(5, 'ether');
 | 
					            const extraETHBalance = Web3Wrapper.toWei(new BigNumber(5));
 | 
				
			||||||
            const overETHBalanceinWei = preETHBalance.add(extraETHBalance);
 | 
					            const overETHBalanceinWei = preETHBalance.add(extraETHBalance);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return expect(
 | 
					            return expect(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,7 +73,6 @@ describe('Exchange', () => {
 | 
				
			|||||||
        const exchangeInstance = await deployer.deployAsync(ContractName.Exchange, [
 | 
					        const exchangeInstance = await deployer.deployAsync(ContractName.Exchange, [
 | 
				
			||||||
            zrx.address,
 | 
					            zrx.address,
 | 
				
			||||||
            tokenTransferProxy.address,
 | 
					            tokenTransferProxy.address,
 | 
				
			||||||
            provider,
 | 
					 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
        exchange = new ExchangeContract(exchangeInstance.abi, exchangeInstance.address, provider);
 | 
					        exchange = new ExchangeContract(exchangeInstance.abi, exchangeInstance.address, provider);
 | 
				
			||||||
        await tokenTransferProxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: accounts[0] });
 | 
					        await tokenTransferProxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: accounts[0] });
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,9 +7,8 @@ import { constants } from '../../util/constants';
 | 
				
			|||||||
import { web3 } from './web3_wrapper';
 | 
					import { web3 } from './web3_wrapper';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const deployerOpts = {
 | 
					const deployerOpts = {
 | 
				
			||||||
    web3Provider: web3.currentProvider,
 | 
					    provider: web3.currentProvider,
 | 
				
			||||||
    artifactsDir: path.resolve('src', 'artifacts'),
 | 
					    artifactsDir: path.resolve('src', 'artifacts'),
 | 
				
			||||||
    jsonrpcUrl: devConstants.RPC_URL,
 | 
					 | 
				
			||||||
    networkId: constants.TESTRPC_NETWORK_ID,
 | 
					    networkId: constants.TESTRPC_NETWORK_ID,
 | 
				
			||||||
    defaults: {
 | 
					    defaults: {
 | 
				
			||||||
        gas: devConstants.GAS_ESTIMATE,
 | 
					        gas: devConstants.GAS_ESTIMATE,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user