From 2060940ecc58fd99f32cf00df7469337f5fc43f0 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 13 Nov 2017 12:30:01 -0500 Subject: Fix lint and ts issues --- packages/0x.js/test/subscription_test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'packages/0x.js/test/subscription_test.ts') diff --git a/packages/0x.js/test/subscription_test.ts b/packages/0x.js/test/subscription_test.ts index 985fdc1d6..f69ae0b13 100644 --- a/packages/0x.js/test/subscription_test.ts +++ b/packages/0x.js/test/subscription_test.ts @@ -13,7 +13,7 @@ import { Token, ApprovalContractEventArgs, TokenEvents, - LogEvent, + DecodedLogEvent, } from '../src'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; import {TokenUtils} from './utils/token_utils'; @@ -64,15 +64,15 @@ describe('SubscriptionTest', () => { }); it('Should receive the Error when an error occurs', (done: DoneCallback) => { (async () => { - const callback = (err: Error, logEvent: LogEvent) => { + const callback = (err: Error, logEvent: DecodedLogEvent) => { expect(err).to.not.be.null(); expect(logEvent).to.be.undefined(); done(); }; stubs = [ Sinon.stub((zeroEx as any)._web3Wrapper, 'getBlockAsync') - .throws("JSON RPC error") - ] + .throws('JSON RPC error'), + ]; zeroEx.token.subscribe( tokenAddress, TokenEvents.Approval, indexFilterValues, callback); await zeroEx.token.setAllowanceAsync(tokenAddress, coinbase, addressWithoutFunds, allowanceAmount); @@ -80,16 +80,16 @@ describe('SubscriptionTest', () => { }); it('Should allow unsubscribeAll to be called successfully after an error', (done: DoneCallback) => { (async () => { - const callback = (err: Error, logEvent: LogEvent) => { }; + const callback = (err: Error, logEvent: DecodedLogEvent) => _.noop; zeroEx.token.subscribe( tokenAddress, TokenEvents.Approval, indexFilterValues, callback); stubs = [ Sinon.stub((zeroEx as any)._web3Wrapper, 'getBlockAsync') - .throws("JSON RPC error") - ] + .throws('JSON RPC error'), + ]; zeroEx.token.unsubscribeAll(); done(); })().catch(done); }); - }) - }) \ No newline at end of file + }); +}); -- cgit v1.2.3