]> git.codecow.com Git - libnemo.git/commitdiff
Skip Ledger tests if no USB support.
authorChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 20:09:57 +0000 (13:09 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 20:09:57 +0000 (13:09 -0700)
test/test.ledger.mjs

index a8fcee7edbb069d4e6ddd31d73205589401874db..ff763206cbdc42a78df74274b24912fe4a53911b 100644 (file)
@@ -37,7 +37,7 @@ const rpc = new Rpc(env.NODE_URL ?? '', env.API_KEY_NAME)
 */
 await Promise.all([
        /* node:coverage disable */
-       suite('Ledger hardware wallet', { skip: false || isNode }, async () => {
+       suite('Ledger hardware wallet', { skip: false || isNode || navigator.usb == null }, async () => {
 
                const { OPEN_BLOCK, RECEIVE_BLOCK, SEND_BLOCK } = NANO_TEST_VECTORS
                let wallet, account, openBlock, sendBlock, receiveBlock