Skip to content

Commit

Permalink
test(extension): mock initializeTrezorTransport method
Browse files Browse the repository at this point in the history
  • Loading branch information
pczeglik-iohk committed Feb 27, 2024
1 parent e4ed066 commit bd11e2e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const mockRestoreWalletFromKeyAgent = jest.fn();
const mockSwitchKeyAgents = jest.fn();
const mockLedgerGetXpub = jest.fn();
const mockTrezorGetXpub = jest.fn();
const mockInitializeTrezorTransport = jest.fn();
const mockLedgerCreateWithDevice = jest.fn();
const mockUseAppSettingsContext = jest.fn().mockReturnValue([{}, jest.fn()]);
import React from 'react';
Expand Down Expand Up @@ -70,7 +71,8 @@ jest.mock('@lace/cardano', () => {
},
Trezor: {
TrezorKeyAgent: {
getXpub: mockTrezorGetXpub
getXpub: mockTrezorGetXpub,
initializeTrezorTransport: mockInitializeTrezorTransport
}
},
restoreWalletFromKeyAgent: mockRestoreWalletFromKeyAgent,
Expand Down

0 comments on commit bd11e2e

Please sign in to comment.