]> git.codecow.com Git - libnemo.git/commitdiff
Move bugged nonce signing test toward end of file.
authorChris Duncan <chris@zoso.dev>
Wed, 9 Jul 2025 18:01:26 +0000 (11:01 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 9 Jul 2025 18:01:26 +0000 (11:01 -0700)
test/test.ledger.mjs

index 9d8da1609f3b31d02c0fb09fa372112afd27e23e..d3e742f1fc170938ef093d65f447e0f32fab5a97 100644 (file)
@@ -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())
        })