Created
August 3, 2013 21:27
-
-
Save 0xjjpa/6148038 to your computer and use it in GitHub Desktop.
Httpbackend methods for flushing on unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afterEach(function() { | |
$httpBackend.flush(); | |
$httpBackend.verifyNoOutstandingExpectation(); | |
$httpBackend.verifyNoOutstandingRequest(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment