expectApiNotCalled function
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',
);
}