]> git.codecow.com Git - libnemo.git/commitdiff
Add test assertion.
authorChris Duncan <chris@zoso.dev>
Tue, 31 Mar 2026 09:07:18 +0000 (02:07 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 31 Mar 2026 09:07:18 +0000 (02:07 -0700)
test/test.blocks.mjs

index 84f3a25da18ba68e07d2e95811c682e784b1e464..781d0e3ad1a97f1f8b863f5191da3ee334821e18 100644 (file)
@@ -91,7 +91,7 @@ await Promise.all([
 \r
                        const block = new Block(BLAKE2B_ADDRESS_1, '0', OPEN_BLOCK.previous, OPEN_BLOCK.representative)\r
                                .receive(OPEN_BLOCK.link, OPEN_BLOCK.balance)\r
-                       await wallet.sign(1, block)\r
+                       await assert.resolves(wallet.sign(1, block))\r
                        assert.ok(await block.verify(BLAKE2B_PUBLIC_1))\r
 \r
                        await wallet.destroy()\r