This builder should not be constructed directly. Call mockNode.forPinRemoteLs()
instead.
Return a successful result, returning the given fixed list of remote pinning services. The parameter
should be an array of { service, endpoint, stat? }
objects, where service is the name of the service,
endpoint is the URL of the remote service, and stat is the status and optional pin count object.
When a request includes the stat=true querystring parameter return the stat object, otherwise exclude it. Note: if the mock data did not include a stat object, the service is set to have an invalid status.
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 remote services ls requests.