Documentation
    Preparing search index...

    Interface MockNotifyOptions

    Options for createMockNotifyService.

    const options: MockNotifyOptions = { controls: ['toasts', 'badges'], grantPermission: false };
    
    interface MockNotifyOptions {
        clock?: MockClock;
        controls?: readonly NotifyControl[];
        grantPermission?: boolean;
        latencyMs?: number;
        scheduler?: MockScheduler;
        seed?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clock?: MockClock

    Clock used for timestamps. Default: Date.now.

    controls?: readonly NotifyControl[]

    Controls advertised in notify.controls. Default toasts, badges, actions, channels.

    grantPermission?: boolean

    Whether permission requests succeed and sends are accepted. Default true.

    latencyMs?: number

    Artificial latency (ms) applied before each result. Default 0, which responds synchronously inside handleMessage.

    scheduler?: MockScheduler

    Scheduler used for deferred pushes. Default: setTimeout.

    seed?: number

    Seed for deterministic ids and fixture ordering. Default 1.