Skip to content

Commit

Permalink
Fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Nov 4, 2022
1 parent 0f1bead commit 0fc83df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/controllers/src/test-utils/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
AllowedActions,
AllowedEvents,
CheckSnapBlockListArg,
handlerEndowments,
PersistedSnapControllerState,
SnapController,
SnapControllerActions,
Expand Down Expand Up @@ -166,7 +167,7 @@ export const getSnapControllerWithEESOptions = (

if (
method === 'PermissionController:hasPermission' &&
args[1] === SnapEndowments.Rpc
Object.values(handlerEndowments).includes(args[1])
) {
return true;
}
Expand Down

0 comments on commit 0fc83df

Please sign in to comment.