]> git.codecow.com Git - libnemo.git/commitdiff
Remove duplicate test and fix test that will always fail in NodeJS.
authorChris Duncan <chris@zoso.dev>
Sun, 26 Apr 2026 21:38:40 +0000 (14:38 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 26 Apr 2026 21:38:40 +0000 (14:38 -0700)
test/test.blocks.mjs

index b7c371de538bb02ea23f85f23c2f41a0cd73ae10..f78f1f1afece59efe714876cc7783e38d8bed85f 100644 (file)
@@ -153,7 +153,7 @@ await Promise.all([
                        await assert.resolves(wallet.destroy())\r
                })\r
 \r
-               await test('fail to sign open block with wallet without user activation', async () => {\r
+               await test('fail to sign open block with wallet without user activation', { skip: isNode }, async () => {\r
                        const wallet = await Wallet.load('BIP-44', PASSWORD, BIP39_SEED)\r
                        await assert.resolves(wallet.unlock(PASSWORD))\r
                        const block = new Block(ADDRESS_0, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
@@ -167,18 +167,6 @@ await Promise.all([
                        await assert.resolves(wallet.destroy())\r
                })\r
 \r
-               await test('sign open block with Exodus wallet', async () => {\r
-                       const wallet = await Wallet.load('Exodus', PASSWORD, EXODUS.BIP39_SEED_0)\r
-                       await assert.resolves(wallet.unlock(PASSWORD))\r
-\r
-                       const block = new Block(EXODUS.ADDRESS_0, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
-                               .receive(OPEN_BLOCK.link, OPEN_BLOCK.balance)\r
-                       await wallet.sign(0, block)\r
-                       assert.ok(await block.verify(EXODUS.PUBLIC_0))\r
-\r
-                       await wallet.destroy()\r
-               })\r
-\r
                await test('fail to sign open block with wallet when locked', async () => {\r
                        const wallet = await Wallet.load('BIP-44', PASSWORD, BIP39_SEED)\r
                        const block = new Block(ADDRESS_0, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r