Skip to content

Commit 41c7562

Browse files
Add missing mock
1 parent 429aec2 commit 41c7562

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,13 @@ export const getRestrictedSnapInterfaceControllerMessenger = (
831831
messenger.registerActionHandler('SnapController:get', (snapId: string) => {
832832
return getSnapObject({ id: snapId as SnapId });
833833
});
834+
835+
messenger.registerActionHandler(
836+
'PermissionController:hasPermission',
837+
() => {
838+
return true;
839+
},
840+
);
834841
}
835842

836843
jest.spyOn(snapInterfaceControllerMessenger, 'call');

0 commit comments

Comments
 (0)