Documentation
    Preparing search index...

    Interface MockNotification

    One active notification the mock keeps.

    const [first] = service.mock.state().notifications.values();
    first.title; // 'New message'
    interface MockNotification {
        actions: NotificationAction[];
        body?: string;
        channel?: string;
        createdAt: number;
        icon?: string;
        notificationId: string;
        priority: NotificationPriority;
        title: string;
        windowId: string;
    }
    Index

    Properties

    actions: NotificationAction[]

    Action buttons (at most three).

    body?: string

    Body text, when given.

    channel?: string

    Channel id, when given.

    createdAt: number

    clock.now() at creation.

    icon?: string

    Icon reference, when given.

    notificationId: string

    Shell-assigned id, e.g. shell-1.

    priority: NotificationPriority

    Effective priority (normal when omitted).

    title: string

    Notification title.

    windowId: string

    Owning window.