Skip to content

Commit e589915

Browse files
committed
Fix broken unit tests
1 parent 5006f1a commit e589915

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/snaps-controllers/src/snaps/SnapController.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4702,7 +4702,7 @@ describe('SnapController', () => {
47024702
},
47034703
});
47044704

4705-
expect(rootMessenger.call).toHaveBeenCalledTimes(4);
4705+
expect(rootMessenger.call).toHaveBeenCalledTimes(5);
47064706
expect(rootMessenger.call).toHaveBeenCalledWith(
47074707
'ExecutionService:handleRpcRequest',
47084708
MOCK_SNAP_ID,

packages/snaps-controllers/src/test-utils/controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ export const getSnapControllerOptions = (
593593
Promise.resolve(TEST_SECRET_RECOVERY_PHRASE_SEED_BYTES),
594594
clientCryptography: {},
595595
encryptor: getSnapControllerEncryptor(),
596+
trackEvent: jest.fn(),
596597
...opts,
597598
} as SnapControllerConstructorParams;
598599

@@ -626,6 +627,7 @@ export const getSnapControllerWithEESOptions = ({
626627
Promise.resolve(TEST_SECRET_RECOVERY_PHRASE_SEED_BYTES),
627628
encryptor: getSnapControllerEncryptor(),
628629
fetchFunction: jest.fn(),
630+
trackEvent: jest.fn(),
629631
...options,
630632
} as SnapControllerConstructorParams & {
631633
rootMessenger: ReturnType<typeof getControllerMessenger>;

0 commit comments

Comments
 (0)