ngMock.$httpBackend.flush()

flush([count]);

Flushes all pending requests using the trained responses.

Parameters

Param Type Details
count
(optional)
number

Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed. If there are no pending requests when the flush method is called an exception is thrown (as this typically a sign of programming error).

doc_AngularJS
2016-03-29 16:12:02
Comments
Leave a Comment

Please login to continue.