Skip to content

Commit

Permalink
[angular-externs] Add externs for exceptionHandler and exceptionHandl…
Browse files Browse the repository at this point in the history
…erProvider

See https://docs.angularjs.org/api/ngMock/provider/$exceptionHandlerProvider

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136221493
  • Loading branch information
haywood authored and blickly committed Oct 17, 2016
1 parent f04eac3 commit 5040a30
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion contrib/externs/angular-1.5-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*
* TODO: Remaining Mocks:
* $browser
* $exceptionHandler
* $log
* angular.mock.TzDate
* angular.mock.dump
Expand Down Expand Up @@ -265,3 +264,19 @@ angular.mock.$controller;

/** @param {!Array|!Function} injectable */
angular.mock.inject = function(injectable) {};


/** @interface */
angular.mock.$exceptionHandler = function() {};


/** @type {!Array<?>} */
angular.mock.$exceptionHandler.prototype.errors;


/** @interface */
angular.mock.$exceptionHandlerProvider = function() {};


/** @param {string} mode */
angular.mock.$exceptionHandlerProvider.prototype.mode = function(mode) {};

0 comments on commit 5040a30

Please sign in to comment.