aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/subscription_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-01 23:30:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-10-02 21:09:24 +0800
commit8c985eb579803692cb696ee0028bd132345cfd8e (patch)
tree95344c7355e3e75c116f620bc562c4b0306b82a5 /packages/contract-wrappers/test/subscription_test.ts
parent3a93c8a6e08666ac6c737e1da363ee04188174a7 (diff)
downloaddexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.gz
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.bz2
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.lz
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.xz
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.zst
dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.zip
Fix linter issue
Diffstat (limited to 'packages/contract-wrappers/test/subscription_test.ts')
-rw-r--r--packages/contract-wrappers/test/subscription_test.ts12
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/contract-wrappers/test/subscription_test.ts b/packages/contract-wrappers/test/subscription_test.ts
index 68ef7225e..6ec7519fe 100644
--- a/packages/contract-wrappers/test/subscription_test.ts
+++ b/packages/contract-wrappers/test/subscription_test.ts
@@ -1,6 +1,5 @@
-import { BlockchainLifecycle, callbackErrorReporter } from '@0xproject/dev-utils';
+import { BlockchainLifecycle } from '@0xproject/dev-utils';
import { DoneCallback } from '@0xproject/types';
-import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import 'mocha';
import * as Sinon from 'sinon';
@@ -18,17 +17,11 @@ const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
describe('SubscriptionTest', () => {
let contractWrappers: ContractWrappers;
- let userAddresses: string[];
- let coinbase: string;
- let addressWithoutFunds: string;
const config = {
networkId: constants.TESTRPC_NETWORK_ID,
};
before(async () => {
contractWrappers = new ContractWrappers(provider, config);
- userAddresses = await web3Wrapper.getAvailableAddressesAsync();
- coinbase = userAddresses[0];
- addressWithoutFunds = userAddresses[1];
});
beforeEach(async () => {
await blockchainLifecycle.startAsync();
@@ -39,7 +32,6 @@ describe('SubscriptionTest', () => {
describe('#subscribe', () => {
const indexFilterValues = {};
let tokenAddress: string;
- const allowanceAmount = new BigNumber(42);
let stubs: Sinon.SinonStub[] = [];
before(() => {
const tokenAddresses = tokenUtils.getDummyERC20TokenAddresses();
@@ -53,7 +45,7 @@ describe('SubscriptionTest', () => {
it('Should allow unsubscribeAll to be called successfully after an error', (done: DoneCallback) => {
(async () => {
const callback = (err: Error | null, _logEvent?: DecodedLogEvent<ERC20TokenApprovalEventArgs>) =>
- _.noop;
+ _.noop.bind(_);
contractWrappers.erc20Token.subscribe(
tokenAddress,
ERC20TokenEvents.Approval,