From 527fb1540c7f24401f151aa8fb02f904a624020c Mon Sep 17 00:00:00 2001 From: Samy RABAH-MONTAROU Date: Mon, 12 Aug 2024 13:27:10 +0200 Subject: [PATCH] lint #2 --- .../src/__tests__/unit/buildTransaction.unit.test.ts | 1 + .../src/wallet-btc/__tests__/fixtures/common.fixtures.ts | 5 ++--- .../src/wallet-btc/__tests__/wallet.unit.test.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/coin-modules/coin-bitcoin/src/__tests__/unit/buildTransaction.unit.test.ts b/libs/coin-modules/coin-bitcoin/src/__tests__/unit/buildTransaction.unit.test.ts index 60cd0102a5e5..55ea9ab2c8e7 100644 --- a/libs/coin-modules/coin-bitcoin/src/__tests__/unit/buildTransaction.unit.test.ts +++ b/libs/coin-modules/coin-bitcoin/src/__tests__/unit/buildTransaction.unit.test.ts @@ -65,6 +65,7 @@ describe("buildTransaction", () => { const res = await buildTransaction(mockAccount, transaction); + // eslint-disable-next-line @typescript-eslint/no-var-requires expect(require("../../wallet-btc").getWalletAccount).toHaveBeenCalledWith(mockAccount); expect(res).toEqual(txInfo); }); diff --git a/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/fixtures/common.fixtures.ts b/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/fixtures/common.fixtures.ts index 4d0373190fc6..fd4278224054 100644 --- a/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/fixtures/common.fixtures.ts +++ b/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/fixtures/common.fixtures.ts @@ -1,12 +1,11 @@ import { CryptoCurrency } from "@ledgerhq/types-cryptoassets"; -import { ICrypto } from "../../crypto/types"; -import { DerivationMode } from "@ledgerhq/types-live"; +import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies"; import { Account } from "../../account"; +import { ICrypto } from "../../crypto/types"; import Xpub from "../../xpub"; import BitcoinLikeStorage from "../../storage"; import BitcoinLikeExplorer from "../../explorer"; -import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies"; import { IStorage } from "../../storage/types"; export const mockCrypto = { diff --git a/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/wallet.unit.test.ts b/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/wallet.unit.test.ts index 302a44d1d59e..edc064180900 100644 --- a/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/wallet.unit.test.ts +++ b/libs/coin-modules/coin-bitcoin/src/wallet-btc/__tests__/wallet.unit.test.ts @@ -107,7 +107,6 @@ describe("BitcoinLikeWallet", () => { test("estimateAccountMaxSpendable", async () => { const addresses = [{ address: "address1", account: 0, index: 0 }] as Address[]; - const changeAddresses = ["address2"]; const utxos = [ { value: "500",