Created
July 25, 2015 21:20
-
-
Save martinkuba/c07725a0aa01752232cf to your computer and use it in GitHub Desktop.
Angular mocking
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
| beforeEach(module(function($provide) { | |
| $provide.factory('$httpBackend', function(){ | |
| return angular.injector(['ng']).get('$httpBackend'); | |
| }) | |
| })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment