Skip to content

Commit 9bc477d

Browse files
committed
fix: test
1 parent 66d9386 commit 9bc477d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

app/core/SnapKeyring/MultichainWalletSnapClient.test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -292,20 +292,10 @@ describe('Wallet Client Implementations', () => {
292292
entropySource: 'test-entropy',
293293
};
294294

295-
const mockKeyring = {
296-
createAccount: jest.fn(),
297-
};
298-
299-
(Engine.controllerMessenger.call as jest.Mock).mockImplementationOnce(
300-
async (_, __, callback) => {
301-
await callback({ keyring: mockKeyring });
302-
},
303-
);
304-
305295
const bitcoinClient = new BitcoinWalletSnapClient(mockSnapKeyringOptions);
306296
await bitcoinClient.createAccount(mockOptions);
307297

308-
expect(mockKeyring.createAccount).toHaveBeenCalledWith(
298+
expect(mockSnapKeyring.createAccount).toHaveBeenCalledWith(
309299
BITCOIN_WALLET_SNAP_ID,
310300
{ ...mockOptions, synchronize: true },
311301
mockSnapKeyringOptions,

0 commit comments

Comments
 (0)