Skip to content

Commit

Permalink
Fix test type
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Apr 27, 2022
1 parent 1dc253f commit 304b8c8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/notification/NotificationController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ControllerMessenger } from '../ControllerMessenger';
import {
ControllerActions,
NotificationController,
NotificationControllerMessenger,
NotificationControllerStateChange,
NotificationType,
} from './NotificationController';
Expand Down Expand Up @@ -30,14 +29,9 @@ function getUnrestrictedMessenger() {
function getRestrictedMessenger(
controllerMessenger = getUnrestrictedMessenger(),
) {
return controllerMessenger.getRestricted<
typeof name,
ControllerActions['type'],
never
>({
return controllerMessenger.getRestricted<typeof name, never, never>({
name,
allowedActions: ['NotificationController:show'],
}) as NotificationControllerMessenger;
});
}

const origin = 'snap_test';
Expand Down

0 comments on commit 304b8c8

Please sign in to comment.