diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 08:35:25 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 08:35:25 +0800 |
commit | 6f8e98e53727a1efc08800017cf2bde38884c982 (patch) | |
tree | d58aa9662d32688f17675d70ed77be2170f54e06 /packages/contract-wrappers/test/ether_token_wrapper_test.ts | |
parent | e093864bff4b9e6191d6ed4d7fe8ce9c60c5c367 (diff) | |
download | dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.gz dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.bz2 dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.lz dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.xz dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.zst dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.zip |
In contract-wrappers, remove setProvider and add unsubscribeAll method.
Diffstat (limited to 'packages/contract-wrappers/test/ether_token_wrapper_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/ether_token_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/ether_token_wrapper_test.ts b/packages/contract-wrappers/test/ether_token_wrapper_test.ts index 1fb6d2d42..74d030e1d 100644 --- a/packages/contract-wrappers/test/ether_token_wrapper_test.ts +++ b/packages/contract-wrappers/test/ether_token_wrapper_test.ts @@ -283,7 +283,7 @@ describe('EtherTokenWrapper', () => { await contractWrappers.etherToken.withdrawAsync(etherTokenAddress, withdrawalAmount, addressWithETH); })().catch(done); }); - it('should cancel outstanding subscriptions when ZeroEx.setProvider is called', (done: DoneCallback) => { + it('should cancel outstanding subscriptions when contractWrappers.unsubscribeAll is called', (done: DoneCallback) => { (async () => { const callbackNeverToBeCalled = callbackErrorReporter.reportNodeCallbackErrors(done)( (_logEvent: DecodedLogEvent<WETH9ApprovalEventArgs>) => { @@ -297,7 +297,7 @@ describe('EtherTokenWrapper', () => { callbackNeverToBeCalled, ); const callbackToBeCalled = callbackErrorReporter.reportNodeCallbackErrors(done)(); - contractWrappers.setProvider(provider); + contractWrappers.unsubscribeAll(); await contractWrappers.etherToken.depositAsync(etherTokenAddress, transferAmount, addressWithETH); contractWrappers.etherToken.subscribe( etherTokenAddress, |