Skip to content

Instantly share code, notes, and snippets.

@quicksnap
Created May 16, 2014 19:38
Show Gist options
  • Select an option

  • Save quicksnap/f9c0994378abf4a9c9a5 to your computer and use it in GitHub Desktop.

Select an option

Save quicksnap/f9c0994378abf4a9c9a5 to your computer and use it in GitHub Desktop.
Error: Unexpected request: GET /api/v1/asset
Expected GET function (url) {
return true;
}
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