aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-05 22:58:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:38 +0800
commitbef056b08407a90cb30b118935a1a155c37766bb (patch)
tree0b0e18707eba25f936c31105c419ddcf9ec75408 /packages
parentc8c86c44f8b978d74e03c11d4bb1813e76574af3 (diff)
downloaddexon-0x-contracts-bef056b08407a90cb30b118935a1a155c37766bb.tar.gz
dexon-0x-contracts-bef056b08407a90cb30b118935a1a155c37766bb.tar.zst
dexon-0x-contracts-bef056b08407a90cb30b118935a1a155c37766bb.zip
Fix linter issues
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/test/exchange_wrapper_test.ts7
-rw-r--r--packages/0x.js/test/subscription_test.ts2
-rw-r--r--packages/0x.js/test/utils/report_callback_errors.ts2
3 files changed, 1 insertions, 10 deletions
diff --git a/packages/0x.js/test/exchange_wrapper_test.ts b/packages/0x.js/test/exchange_wrapper_test.ts
index c501ce998..39a5be61d 100644
--- a/packages/0x.js/test/exchange_wrapper_test.ts
+++ b/packages/0x.js/test/exchange_wrapper_test.ts
@@ -33,13 +33,6 @@ const blockchainLifecycle = new BlockchainLifecycle(constants.RPC_URL);
const NON_EXISTENT_ORDER_HASH = '0x79370342234e7acd6bbeac335bd3bb1d368383294b64b8160a00f4060e4d3777';
-function noError<T>(err: Error | null, value: T | undefined): value is T {
- if (_.isNull(err)) {
- throw err;
- }
- return _.isNull(err);
-}
-
describe('ExchangeWrapper', () => {
let web3: Web3;
let zeroEx: ZeroEx;
diff --git a/packages/0x.js/test/subscription_test.ts b/packages/0x.js/test/subscription_test.ts
index f44bfecf6..f4c6f748f 100644
--- a/packages/0x.js/test/subscription_test.ts
+++ b/packages/0x.js/test/subscription_test.ts
@@ -1,6 +1,5 @@
import { BlockchainLifecycle } from '@0xproject/dev-utils';
import { BigNumber } from '@0xproject/utils';
-import * as chai from 'chai';
import * as _ from 'lodash';
import 'mocha';
import * as Sinon from 'sinon';
@@ -15,7 +14,6 @@ import { assertNodeCallbackError } from './utils/report_callback_errors';
import { web3Factory } from './utils/web3_factory';
chaiSetup.configure();
-const expect = chai.expect;
const blockchainLifecycle = new BlockchainLifecycle(constants.RPC_URL);
describe('SubscriptionTest', () => {
diff --git a/packages/0x.js/test/utils/report_callback_errors.ts b/packages/0x.js/test/utils/report_callback_errors.ts
index 7890e7cd3..a7d9e61be 100644
--- a/packages/0x.js/test/utils/report_callback_errors.ts
+++ b/packages/0x.js/test/utils/report_callback_errors.ts
@@ -1,7 +1,7 @@
import * as chai from 'chai';
import * as _ from 'lodash';
-import { DoneCallback, OrderState } from '../../src/types';
+import { DoneCallback } from '../../src/types';
const expect = chai.expect;