From 7172ee4eb93c23ca70f9ca482339d4a6e6640df5 Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Thu, 7 Dec 2023 00:32:12 -0500 Subject: [PATCH] test(wallets/manager): update WalletManager tests --- __tests__/wallets/manager.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/wallets/manager.test.ts b/__tests__/wallets/manager.test.ts index 6ecf0f2..253fb6e 100644 --- a/__tests__/wallets/manager.test.ts +++ b/__tests__/wallets/manager.test.ts @@ -175,10 +175,10 @@ describe('WalletManager', () => { }) describe('activeWallet', () => { - const serializedState = { + const initialState = { wallets: new Map([ [ - 'pera', + WalletId.PERA, { accounts: [ { @@ -197,12 +197,12 @@ describe('WalletManager', () => { } ] ]), - activeWallet: 'pera', - activeNetwork: 'testnet' + activeWallet: WalletId.PERA, + activeNetwork: NetworkId.TESTNET } beforeEach(() => { - localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(serializedState, replacer)) + localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(initialState, replacer)) }) it('returns the active wallet', () => {