diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 04:29:49 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:15:47 +0800 |
commit | c780d04ceea70bbe706bdd740b4dec01a34de00b (patch) | |
tree | 4678ba3dfd931a37a57d63217d27b1f15515d5df /packages/0x.js/test | |
parent | 8c54e9a8731ccd831daf5533070302746af575e5 (diff) | |
download | dexon-0x-contracts-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.gz dexon-0x-contracts-c780d04ceea70bbe706bdd740b4dec01a34de00b.tar.zst dexon-0x-contracts-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.ts | 6 |
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]; |