@@ -479,7 +479,6 @@ export const getSnapControllerMessenger = (
479479 'ExecutionService:executeSnap' ,
480480 'ExecutionService:terminateSnap' ,
481481 'ExecutionService:handleRpcRequest' ,
482- 'NetworkController:getNetworkClientById' ,
483482 'PermissionController:getEndowments' ,
484483 'PermissionController:hasPermission' ,
485484 'PermissionController:hasPermissions' ,
@@ -490,7 +489,6 @@ export const getSnapControllerMessenger = (
490489 'PermissionController:revokePermissionForAllSubjects' ,
491490 'PermissionController:updateCaveat' ,
492491 'PermissionController:getSubjectNames' ,
493- 'SelectedNetworkController:getNetworkClientIdForDomain' ,
494492 'SubjectMetadataController:getSubjectMetadata' ,
495493 'SubjectMetadataController:addSubjectMetadata' ,
496494 'SnapsRegistry:get' ,
@@ -574,6 +572,7 @@ export const getSnapControllerOptions = (
574572 clientCryptography : { } ,
575573 encryptor : getSnapControllerEncryptor ( ) ,
576574 trackEvent : jest . fn ( ) ,
575+ waitForOnboarding : jest . fn ( ) . mockResolvedValue ( undefined ) ,
577576 ...opts ,
578577 } as SnapControllerConstructorParams ;
579578
@@ -608,6 +607,7 @@ export const getSnapControllerWithEESOptions = ({
608607 encryptor : getSnapControllerEncryptor ( ) ,
609608 fetchFunction : jest . fn ( ) ,
610609 trackEvent : jest . fn ( ) ,
610+ waitForOnboarding : jest . fn ( ) . mockResolvedValue ( undefined ) ,
611611 ...options ,
612612 } as SnapControllerConstructorParams & {
613613 rootMessenger : ReturnType < typeof getControllerMessenger > ;
0 commit comments