From 78a8666176fd6d33767a000fe5470e847959e631 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Thu, 11 Oct 2018 14:21:09 +0200 Subject: [PATCH] fix tests --- test/ocean/Account.test.ts | 1 - test/ocean/Asset.test.ts | 4 ---- test/tsconfig.json | 3 ++- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/ocean/Account.test.ts b/test/ocean/Account.test.ts index fd8d668..bd38dcf 100644 --- a/test/ocean/Account.test.ts +++ b/test/ocean/Account.test.ts @@ -1,5 +1,4 @@ import * as assert from "assert" -import BigNumber from "bignumber.js" import ContractHandler from "../../src/keeper/ContractHandler" import Keeper from "../../src/keeper/Keeper" import Web3Helper from "../../src/keeper/Web3Helper" diff --git a/test/ocean/Asset.test.ts b/test/ocean/Asset.test.ts index 454e3bb..8c65047 100644 --- a/test/ocean/Asset.test.ts +++ b/test/ocean/Asset.test.ts @@ -64,10 +64,6 @@ describe("Asset", () => { it("should return false on unknown asset", async () => { - const account = new Account(keeper) - const accounts = await account.list() - const addr = accounts[0].name - const asset = new Asset(keeper) const isAssetActive = await asset.isAssetActive("0x0000") diff --git a/test/tsconfig.json b/test/tsconfig.json index feebc1e..4ca49cc 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -3,6 +3,7 @@ "lib": [ "es6", "es7" - ] + ], + "noUnusedLocals": true } }