cockpit-plugin-base-react - v1.1.1
    Preparing search index...

    Function mockHttpClient

    • Creates a fake CockpitHttpClient whose get method returns canned responses.

      Parameters

      • responses: Record<string, string> = {}

        Map of URL paths to response body strings. Unmatched paths return "{}".

      Returns CockpitHttpClient