From 4e48de111600412c6344bc5c4df42e4d17807e97 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Thu, 12 Apr 2018 17:55:06 -0700 Subject: Minor changes to typescript tests --- packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts') diff --git a/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts b/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts index f466670a8..8f430ee94 100644 --- a/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts +++ b/packages/contracts/test/asset_proxy_dispatcher/dispatcher.ts @@ -183,7 +183,7 @@ describe('AssetProxyDispatcher', () => { expect(proxyAddress).to.be.equal(newAddress); }); - it('should throw if registering with incorrect "old_address" field', async () => { + it('should throw if registering with incorrect "currentAssetProxyAddress" field', async () => { // Initial registration await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, @@ -225,7 +225,7 @@ describe('AssetProxyDispatcher', () => { expect(newProxyAddress).to.be.equal(ZeroEx.NULL_ADDRESS); }); - it('should throw if requesting address is not authorized', async () => { + it('should throw if requesting address is not owner', async () => { return expect( assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, @@ -286,7 +286,7 @@ describe('AssetProxyDispatcher', () => { ); }); - it('should throw if delegating to unregistered proxy', async () => { + it('should throw if dispatching to unregistered proxy', async () => { // Construct metadata for ERC20 proxy const encodedProxyMetadata = encodeERC20ProxyData(zrx.address); // Perform a transfer from makerAddress to takerAddress @@ -298,7 +298,7 @@ describe('AssetProxyDispatcher', () => { makerAddress, takerAddress, amount, - { from: notOwner }, + { from: exchangeAddress }, ), ).to.be.rejectedWith(constants.REVERT); }); -- cgit v1.2.3