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

    Function addMockResourceAclTo

    • Do not use this function in production code. For use in **unit tests** that
      require a [[SolidDataset]] with a resource ACL (Access Control List).
      

      Initialises a new empty ACL and attaches it to a given [[SolidDataset]] for use in unit tests; e.g., unit tests that call [[getResourceAcl]].

      Type Parameters

      Parameters

      • resource: T

        The Resource to mock up with a new resource ACL.

      Returns T & WithAcl & { internal_acl: { resourceAcl: AclDataset } }

      The input Resource with an empty resource ACL attached.

      0.2.0