Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MockedEndpoint

A mocked endpoint provides methods to see the current state of a mock rule.

Hierarchy

  • MockedEndpoint

Implemented by

Index

Properties

Methods

Properties

id

id: string

Methods

getSeenRequests

  • Get the requests that this endpoint has seen so far.

    This method returns a promise, which resolves with the requests seen up until now. The returned lists are immutable, so won't change if more requests rrive in future. Call getSeenRequests again later to get an updated list.

    Returns Promise<CompletedRequest[]>

Generated using TypeDoc