Skip to content

Commit 5ab4699

Browse files
committed
test: add missing test
1 parent 641fea7 commit 5ab4699

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/multichain-account-api/src/index.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,15 @@ describe('index', () => {
551551
expect(multichainAccount.getAccounts()).toHaveLength(4); // EVM + SOL + 2 BTC.
552552
});
553553

554+
it('gets a multichain account from its index', async () => {
555+
const wallet = await setupMultichainAccountWallet();
556+
557+
const groupIndex = 0;
558+
const multichainAccount = wallet.getMultichainAccount(groupIndex);
559+
expect(multichainAccount).toBeDefined();
560+
expect(multichainAccount?.index).toBe(groupIndex);
561+
});
562+
554563
it('returns the same multichain account if index already exist', async () => {
555564
const wallet = await setupMultichainAccountWallet();
556565

0 commit comments

Comments
 (0)