From bf8bcd14877491c6f3a394e97d2bbfba6eaa65fa Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 12 Oct 2024 20:36:37 -0700 Subject: [PATCH] Test new wallet ID getter. --- test/create-wallet.test.mjs | 2 ++ test/refresh-accounts.test.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/create-wallet.test.mjs b/test/create-wallet.test.mjs index 256eb81..bbb18d6 100644 --- a/test/create-wallet.test.mjs +++ b/test/create-wallet.test.mjs @@ -34,6 +34,7 @@ describe('generate wallet test', async () => { await wallet.unlock(NANO_TEST_VECTORS.PASSWORD) const accounts = await wallet.accounts() + assert.ok('id' in wallet) assert.ok('mnemonic' in wallet) assert.ok('seed' in wallet) assert.ok(accounts[0] instanceof Account) @@ -44,6 +45,7 @@ describe('generate wallet test', async () => { await wallet.unlock(NANO_TEST_VECTORS.PASSWORD) const accounts = await wallet.accounts() + assert.ok('id' in wallet) assert.ok('mnemonic' in wallet) assert.ok('seed' in wallet) assert.ok(accounts[0] instanceof Account) diff --git a/test/refresh-accounts.test.mjs b/test/refresh-accounts.test.mjs index 19477d7..9dfc8fd 100644 --- a/test/refresh-accounts.test.mjs +++ b/test/refresh-accounts.test.mjs @@ -15,7 +15,7 @@ const wallet = await Bip44Wallet.fromSeed(NANO_TEST_VECTORS.PASSWORD, NANO_TEST_ await wallet.unlock(NANO_TEST_VECTORS.PASSWORD) const node = new Node(process.env.NODE_URL, process.env.API_KEY_NAME, process.env.API_KEY_VALUE) -const skip = false +const skip = true describe('refreshing account info', { skip }, async () => { it('should fetch balance, frontier, and representative', async () => { -- 2.34.1