Documentation
    Preparing search index...

    Function mockIntentAvailability

    • Build the availability record for one role from a catalog.

      Parameters

      • napplets: readonly MockNapplet[]

        Installed napplets.

      • archetype: string

        Role slug.

      • defaults: ReadonlyMap<string, string>

        User defaults.

      Returns MockIntentAvailability

      Availability with candidates in catalog order.

      mockIntentAvailability(MOCK_NAPPLETS, 'profile', new Map()).candidates[0]?.id === 'catalog-profile-viewer';