Created
May 28, 2014 18:17
-
-
Save ashaffer/8ca54d65c54334638f77 to your computer and use it in GitHub Desktop.
This file contains 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
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