wasCalled method

bool wasCalled(
  1. String endpointId
)

Verifies that a specific endpoint was called.

Implementation

bool wasCalled(String endpointId) {
  return requests.any((r) => r.endpointId == endpointId);
}