expectApiNotCalled function

void expectApiNotCalled(
  1. String endpoint, {
  2. String? method,
})

Assert that an API endpoint was not called.

Implementation

void expectApiNotCalled(String endpoint, {String? method}) {
  final wasCalled = NyMockApi.wasCalled(endpoint, method: method);
  expect(
    wasCalled,
    isFalse,
    reason: 'Expected "$endpoint" to not have been called',
  );
}