]> git.codecow.com Git - libnemo.git/commitdiff
Skip PoW test in NodeJS.
authorChris Duncan <chris@zoso.dev>
Fri, 24 Apr 2026 07:02:04 +0000 (00:02 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 24 Apr 2026 07:02:04 +0000 (00:02 -0700)
test/test.blocks.mjs

index 15d84f0d2ad872a277143dc4d247766d89ff6774..46b94dd47b9210d0746e857404ba0006bb5626e7 100644 (file)
@@ -4,7 +4,7 @@
 'use strict'\r
 \r
 import { Block, Rpc, Wallet } from 'libnemo'\r
-import { assert, suite, test } from './GLOBALS.mjs'\r
+import { assert, isNode, suite, test } from './GLOBALS.mjs'\r
 import { CUSTOM_TEST_VECTORS, NANO_TEST_VECTORS } from './VECTORS.mjs'\r
 \r
 await Promise.all([\r
@@ -12,7 +12,7 @@ await Promise.all([
                const { OPEN_BLOCK } = NANO_TEST_VECTORS\r
                const rpc = new Rpc('https://example.com')\r
 \r
-               await test('generate work automatically when processing block', async () => {\r
+               await test('generate work automatically when processing block', { skip: isNode }, async () => {\r
                        const block = await new Block(OPEN_BLOCK.account, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
                                .receive(OPEN_BLOCK.link, OPEN_BLOCK.balance)\r
                                .sign(OPEN_BLOCK.key)\r