mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
fix:exceptionHandler mock: should not specify dependencies
also added a test for this mock service
This commit is contained in:
4
src/angular-mocks.js
vendored
4
src/angular-mocks.js
vendored
@@ -246,8 +246,8 @@ angular.service('$browser', function(){
|
||||
*
|
||||
* See {@link angular.mock} for more info on angular mocks.
|
||||
*/
|
||||
angular.service('$exceptionHandler', function(e) {
|
||||
return function(e) {throw e;};
|
||||
angular.service('$exceptionHandler', function() {
|
||||
return function(e) { throw e;};
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user