From: Chris Duncan Date: Wed, 9 Jul 2025 18:01:26 +0000 (-0700) Subject: Move bugged nonce signing test toward end of file. X-Git-Tag: v0.10.5~78 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=cb975b7c56bfcbd31d4ccf1dca4dcca876278a73;p=libnemo.git Move bugged nonce signing test toward end of file. --- diff --git a/test/test.ledger.mjs b/test/test.ledger.mjs index 9d8da16..d3e742f 100644 --- a/test/test.ledger.mjs +++ b/test/test.ledger.mjs @@ -24,15 +24,6 @@ await suite('Ledger hardware wallet', { skip: false || isNode }, async () => { assert.equals(status, 'CONNECTED') }) - // nonce signing is currently broken: https://github.com/LedgerHQ/app-nano/pull/14 - await test('sign a nonce', { skip: true }, async () => { - // const nonce = new TextEncoder().encode('0123456789abcdef') - // const {status, signature} = await click('Click to sign nonce', wallet.sign(0, nonce)) - - // assert.equals(resultSignNonce.status, 'OK') - // assert.OK(/[A-Fa-f0-9]{128}/.test(resultSignNonce.signature)) - }) - await test('get first account', async () => { account = await click( 'Click to get account', @@ -142,6 +133,15 @@ await suite('Ledger hardware wallet', { skip: false || isNode }, async () => { await wallet.destroy() }) + // nonce signing is currently broken: https://github.com/LedgerHQ/app-nano/pull/14 + await test('sign a nonce', { skip: true }, async () => { + // const nonce = new TextEncoder().encode('0123456789abcdef') + // const {status, signature} = await click('Click to sign nonce', wallet.sign(0, nonce)) + + // assert.equals(resultSignNonce.status, 'OK') + // assert.OK(/[A-Fa-f0-9]{128}/.test(resultSignNonce.signature)) + }) + await test('fail when using new', async () => { assert.throws(() => new LedgerWallet()) })