Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
test(wallets/manager): update WalletManager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drichar committed Dec 7, 2023
1 parent a6feb2e commit 7172ee4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions __tests__/wallets/manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ describe('WalletManager', () => {
})

describe('activeWallet', () => {
const serializedState = {
const initialState = {
wallets: new Map([
[
'pera',
WalletId.PERA,
{
accounts: [
{
Expand All @@ -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', () => {
Expand Down

0 comments on commit 7172ee4

Please sign in to comment.