aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-12 09:21:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-12 09:21:12 +0800
commit41f0be48f1360ca6241b399593212cdf767c2db0 (patch)
tree835a231e28ed0fff4d70e98b46940b5bfe3b4ffa
parentb376f031020f6e318d4ddd49ecdecc8d1a4fe48d (diff)
downloaddexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar.gz
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar.bz2
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar.lz
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar.xz
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.tar.zst
dexon-sol-tools-41f0be48f1360ca6241b399593212cdf767c2db0.zip
Use actual exception values in test names
-rw-r--r--test/token_wrapper_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts
index 19be27b93..52a2507bf 100644
--- a/test/token_wrapper_test.ts
+++ b/test/token_wrapper_test.ts
@@ -66,7 +66,7 @@ describe('TokenWrapper', () => {
token.address, fromAddress, toAddress, transferAmount,
)).to.be.rejectedWith(ZeroExError.InsufficientBalanceForTransfer);
});
- it('should throw a ContractDoesNotExist error for a non-existent token contract', async () => {
+ it('should throw a CONTRACT_DOES_NOT_EXIST error for a non-existent token contract', async () => {
const nonExistentTokenAddress = '0x9dd402f14d67e001d8efbe6583e51bf9706aa065';
const fromAddress = coinbase;
const toAddress = coinbase;
@@ -140,7 +140,7 @@ describe('TokenWrapper', () => {
const postBalance = await zeroEx.token.getBalanceAsync(token.address, toAddress);
return expect(postBalance).to.be.bignumber.equal(transferAmount);
});
- it('should throw a ContractDoesNotExist error for a non-existent token contract', async () => {
+ it('should throw a CONTRACT_DOES_NOT_EXIST error for a non-existent token contract', async () => {
const fromAddress = coinbase;
const nonExistentTokenAddress = '0x9dd402f14d67e001d8efbe6583e51bf9706aa065';
return expect(zeroEx.token.transferFromAsync(
@@ -156,7 +156,7 @@ describe('TokenWrapper', () => {
const expectedBalance = new BigNumber('100000000000000000000000000');
return expect(balance).to.be.bignumber.equal(expectedBalance);
});
- it('should throw a ContractDoesNotExist error for a non-existent token contract', async () => {
+ it('should throw a CONTRACT_DOES_NOT_EXIST error for a non-existent token contract', async () => {
const nonExistentTokenAddress = '0x9dd402f14d67e001d8efbe6583e51bf9706aa065';
const ownerAddress = coinbase;
return expect(zeroEx.token.getBalanceAsync(nonExistentTokenAddress, ownerAddress))