We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 429aec2 commit 41c7562Copy full SHA for 41c7562
packages/snaps-controllers/src/test-utils/controller.tsx
@@ -831,6 +831,13 @@ export const getRestrictedSnapInterfaceControllerMessenger = (
831
messenger.registerActionHandler('SnapController:get', (snapId: string) => {
832
return getSnapObject({ id: snapId as SnapId });
833
});
834
+
835
+ messenger.registerActionHandler(
836
+ 'PermissionController:hasPermission',
837
+ () => {
838
+ return true;
839
+ },
840
+ );
841
}
842
843
jest.spyOn(snapInterfaceControllerMessenger, 'call');
0 commit comments