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/exchange_wrapper_test.ts | |
parent | e093864bff4b9e6191d6ed4d7fe8ce9c60c5c367 (diff) | |
download | dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.gz 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/exchange_wrapper_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/exchange_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/exchange_wrapper_test.ts b/packages/contract-wrappers/test/exchange_wrapper_test.ts index 7e29c76a1..4d0176349 100644 --- a/packages/contract-wrappers/test/exchange_wrapper_test.ts +++ b/packages/contract-wrappers/test/exchange_wrapper_test.ts @@ -410,7 +410,7 @@ describe('ExchangeWrapper', () => { await contractWrappers.exchange.cancelOrderAsync(signedOrder); })().catch(done); }); - it('Outstanding subscriptions are cancelled when contractWrappers.setProvider called', (done: DoneCallback) => { + it('Outstanding subscriptions are cancelled when contractWrappers.unsubscribeAll called', (done: DoneCallback) => { (async () => { const callbackNeverToBeCalled = callbackErrorReporter.reportNodeCallbackErrors(done)( (logEvent: DecodedLogEvent<ExchangeFillEventArgs>) => { @@ -419,7 +419,7 @@ describe('ExchangeWrapper', () => { ); contractWrappers.exchange.subscribe(ExchangeEvents.Fill, indexFilterValues, callbackNeverToBeCalled); - contractWrappers.setProvider(provider); + contractWrappers.unsubscribeAll(); const callback = callbackErrorReporter.reportNodeCallbackErrors(done)( (logEvent: DecodedLogEvent<ExchangeFillEventArgs>) => { |