aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 04:29:49 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:15:47 +0800
commitc780d04ceea70bbe706bdd740b4dec01a34de00b (patch)
tree4678ba3dfd931a37a57d63217d27b1f15515d5df /packages/0x.js/test
parent8c54e9a8731ccd831daf5533070302746af575e5 (diff)
downloaddexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.gz
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.bz2
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.lz
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.xz
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.zst
dexon-sol-tools-c780d04ceea70bbe706bdd740b4dec01a34de00b.zip
Remove ContractDoesNotExist error and replace it with more specific errors
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r--packages/0x.js/test/token_wrapper_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/test/token_wrapper_test.ts b/packages/0x.js/test/token_wrapper_test.ts
index abd4243c3..d0ca0144a 100644
--- a/packages/0x.js/test/token_wrapper_test.ts
+++ b/packages/0x.js/test/token_wrapper_test.ts
@@ -86,7 +86,7 @@ describe('TokenWrapper', () => {
const toAddress = coinbase;
return expect(zeroEx.token.transferAsync(
nonExistentTokenAddress, fromAddress, toAddress, transferAmount,
- )).to.be.rejectedWith(ZeroExError.ContractDoesNotExist);
+ )).to.be.rejectedWith(ZeroExError.TokenContractDoesNotExist);
});
});
describe('#transferFromAsync', () => {
@@ -159,7 +159,7 @@ describe('TokenWrapper', () => {
const nonExistentTokenAddress = '0x9dd402f14d67e001d8efbe6583e51bf9706aa065';
return expect(zeroEx.token.transferFromAsync(
nonExistentTokenAddress, fromAddress, toAddress, senderAddress, new BigNumber(42),
- )).to.be.rejectedWith(ZeroExError.ContractDoesNotExist);
+ )).to.be.rejectedWith(ZeroExError.TokenContractDoesNotExist);
});
});
describe('#getBalanceAsync', () => {
@@ -175,7 +175,7 @@ describe('TokenWrapper', () => {
const nonExistentTokenAddress = '0x9dd402f14d67e001d8efbe6583e51bf9706aa065';
const ownerAddress = coinbase;
return expect(zeroEx.token.getBalanceAsync(nonExistentTokenAddress, ownerAddress))
- .to.be.rejectedWith(ZeroExError.ContractDoesNotExist);
+ .to.be.rejectedWith(ZeroExError.TokenContractDoesNotExist);
});
it('should return a balance of 0 for a non-existent owner address', async () => {
const token = tokens[0];