diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-17 19:27:41 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-17 19:27:41 +0800 |
commit | 59fd5c69c0279194a631462afb0b5241d08bbb72 (patch) | |
tree | 9ec2ebdf57e4f8250ace1df1ecf673c89cd986c5 /packages | |
parent | b750ce8be641cd7fe8e7570a7cc49b51a90467cc (diff) | |
download | dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar.gz dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar.bz2 dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar.lz dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar.xz dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.tar.zst dexon-sol-tools-59fd5c69c0279194a631462afb0b5241d08bbb72.zip |
Remove no-longer needed tests
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contract-wrappers/test/subscription_test.ts | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/packages/contract-wrappers/test/subscription_test.ts b/packages/contract-wrappers/test/subscription_test.ts index adda4ab78..80d17576f 100644 --- a/packages/contract-wrappers/test/subscription_test.ts +++ b/packages/contract-wrappers/test/subscription_test.ts @@ -49,44 +49,6 @@ describe('SubscriptionTest', () => { _.each(stubs, s => s.restore()); stubs = []; }); - it('Should receive the Error when an error occurs while fetching the block', (done: DoneCallback) => { - (async () => { - const errMsg = 'Error fetching block'; - const callback = callbackErrorReporter.assertNodeCallbackError(done, errMsg); - stubs = [Sinon.stub((contractWrappers as any)._web3Wrapper, 'getBlockAsync').throws(new Error(errMsg))]; - contractWrappers.erc20Token.subscribe( - tokenAddress, - ERC20TokenEvents.Approval, - indexFilterValues, - callback, - ); - await contractWrappers.erc20Token.setAllowanceAsync( - tokenAddress, - coinbase, - addressWithoutFunds, - allowanceAmount, - ); - })().catch(done); - }); - it('Should receive the Error when an error occurs while reconciling the new block', (done: DoneCallback) => { - (async () => { - const errMsg = 'Error fetching logs'; - const callback = callbackErrorReporter.assertNodeCallbackError(done, errMsg); - stubs = [Sinon.stub((contractWrappers as any)._web3Wrapper, 'getLogsAsync').throws(new Error(errMsg))]; - contractWrappers.erc20Token.subscribe( - tokenAddress, - ERC20TokenEvents.Approval, - indexFilterValues, - callback, - ); - await contractWrappers.erc20Token.setAllowanceAsync( - tokenAddress, - coinbase, - addressWithoutFunds, - allowanceAmount, - ); - })().catch(done); - }); it('Should allow unsubscribeAll to be called successfully after an error', (done: DoneCallback) => { (async () => { const callback = (err: Error | null, _logEvent?: DecodedLogEvent<ERC20TokenApprovalEventArgs>) => |