Documentation
    Preparing search index...

    Type Alias MockIntentService

    MockIntentService: MockService<MockIntentState> & {
        bindWindow(windowId: string, catalogId: string): void;
        setDefault(
            archetype: string,
            catalogId: string | null,
        ): MockIntentAvailability;
    }

    The intent mock service with its bindWindow and setDefault controls.

    Type Declaration

    • bindWindow: function
      • Bind a window to a catalog identifier (its verified manifest) and push any pending intent.deliver for that identifier to it.

        Parameters

        • windowId: string

          Live window.

        • catalogId: string

          Catalog identifier the window runs.

        Returns void

    • setDefault: function
    const intent = createMockIntentService();
    intent.bindWindow('w2', 'catalog-profile-viewer'); // flushes pending deliveries to w2
    intent.setDefault('feed', 'catalog-note-viewer'); // pushes intent.changed