ngMock.$httpBackend.verifyNoOutstandingExpectation()

verifyNoOutstandingExpectation();

Verifies that all of the requests defined via the expect api were made. If any of the requests were not made, verifyNoOutstandingExpectation throws an exception.

Typically, you would call this method following each test case that asserts requests using an "afterEach" clause.

afterEach($httpBackend.verifyNoOutstandingExpectation);
doc_AngularJS
2016-03-29 16:12:02
Comments
Leave a Comment

Please login to continue.