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

    Function addMockAcrTo

    • Do not use this function in production code.  For use in **unit tests** that require a
      Resource with an [[AccessControlResource]].
      

      Attaches an Access Control Resource to a given [[SolidDataset]] for use in unit tests; e.g., unit tests that call [[getPolicyUrlAll]].

      Type Parameters

      Parameters

      • resource: T

        The Resource to mock up with a new resource ACL.

      • accessControlResource: AccessControlResource = ...

        The Access Control Resource to attach to the given Resource.

      Returns T & WithAcp & { internal_acp: { acr: AccessControlResource } }

      The input Resource with an empty resource ACL attached.

      1.6.0