@inrupt/solid-client
    Preparing search index...

    Function mockContainerFrom

    • Do not use this function in production code. For use in **unit tests**.
      

      This function initialises a new Container [[SolidDataset]] with metadata as though the Container has been retrieved from the given URL. The mock SolidDataset can be used in unit tests that require persisted Containers; e.g., unit tests that call [[isContainer]].

      Parameters

      • url: string | Url

        The URL from which the returned Container appears to be retrieved. The url must end in a slash.

      Returns Readonly<{}> & WithResourceInfo & {}

      A mock SolidDataset that appears to be retrieved from the url.

      0.2.0