Expect that no requests were made that match the given condition.
If a matching call was made, fail with an error message including the given request description, if any.
Optionaldescription: stringExpect that a single call was made that matches the given condition, and return its TestCall.
If no such call was made, or more than one such call was made, fail with an error message including the given request description, if any.
Optionaldescription: stringSearch for calls that match the given condition, without any expectations.
Verify that no unmatched calls are outstanding.
If any calls are outstanding, fail with an error message indicating which calls were not handled.
Controller to be used in tests, that allows for mocking and flushing any asynchronous method. If you are using an
AngularContext, it automatically callsAngularContext#tickafter each.flush()and.error()to trigger promise handlers and change detection. This is the normal production behavior of asynchronous browser APIs.For example, to mock the browser's paste functionality: