Skip to content

Instantly share code, notes, and snippets.

@ashaffer
Created May 28, 2014 18:17
Show Gist options
  • Save ashaffer/8ca54d65c54334638f77 to your computer and use it in GitHub Desktop.
Save ashaffer/8ca54d65c54334638f77 to your computer and use it in GitHub Desktop.
browser.addMockModule('inject-latency', function() {
angular.module('inject-latency', ['models'])
.config(['$provide', function($provide) {
$provide.decorator('api', function($delegate) {
return $delegate({
transformParams: function(params) {
params.latency = true;
}
});
});
}]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment