Created
May 16, 2014 19:38
-
-
Save quicksnap/f9c0994378abf4a9c9a5 to your computer and use it in GitHub Desktop.
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
| Error: Unexpected request: GET /api/v1/asset | |
| Expected GET function (url) { | |
| return true; | |
| } |
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
| it('matches URL via function', function() { | |
| var results = service.getAsset(); | |
| var urlMatch = function(url) { | |
| return true; | |
| }; | |
| $httpBackend.expectGET(urlMatch).respond( assetResponse ); | |
| $httpBackend.flush(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment