This builder should not be constructed directly. Call mockNode.forPinLs()
instead.
Return a successful result, returning the given fixed list of pinned content. The parameter should
be an array of { type, cid }
objects, where type is the pin type (direct, recursive, indirect, or
all), and cid is the CID of the pinned content.
When this matches a request that specifies a filter (e.g. ?type=direct) only the values with the matching type will be returned.
This method completes the rule definition, and returns a promise that resolves once the rule is active.
Generated using TypeDoc
A builder to allow defining rules that will mock IPFS pin ls requests.