Documentation
    Preparing search index...

    Function createMockNotifyService

    • Create the NAP-NOTIFY mock. Notifications live in mock.state() until dismissed; interact() drives the shell-initiated pushes.

      Parameters

      • options: MockNotifyOptions = {}

        Controls, permission policy, and shared mock options.

      Returns MockNotifyService

      The notify mock service.

      const notify = createMockNotifyService();
      notify.handleMessage('w1', { type: 'notify.send', id: 'n1', title: 'New message' }, send);
      // → notify.controls push, then { type: 'notify.send.result', id: 'n1', notificationId: 'shell-1' }